| Blockland Forums > Modification Help |
| Deleting datablocks |
| (1/2) > >> |
| Demian:
I need to delete the datablock playerTeleportEmitterB. I tried to do this in my script with this: --- Code: ---playerTeleportEmitterB.delete(); --- End code --- When executing the script, I got this error. --- Code: ---ERROR: delete - you cannot delete datablocks directly BackTrace: ->SM_StartMission->createServer->onServerCreated->loadAddOns --- End code --- How do I delete datablocks? Alternatively, if someone knows how to remove the playerTeleportEmitterB (Player Teleport B in the emitter list) from the emitter list that would work too. |
| Ephialtes:
You shouldn't be deleting datablocks at all. Try setting the uiName of the datablock to nothing. You need to do this as the server is starting (ie before any clients have connected) or it won't work. |
| takato14:
If what you are trying to do is make the camera orb invisible, just download the new orb script from RTB and set the particle colors to "0 0 0 0". If not then just ignore me. |
| Demian:
--- Quote from: takato14 on September 12, 2010, 01:21:12 PM ---If what you are trying to do is make the camera orb invisible, just download the new orb script from RTB and set the particle colors to "0 0 0 0". If not then just ignore me. --- End quote --- Not what I want. --- Quote from: Ephialtes on September 12, 2010, 10:51:18 AM ---Try setting the uiName of the datablock to nothing. --- End quote --- Didn't work. |
| Demian:
Okay let me simplify this. I want the following emitter gone from the emitter list in events/wrench gui: Player Teleport B The datablock name for it is: playerTeleportEmitterB The datablock name for the particle is: playerTeleportParticleB |
| Navigation |
| Message Index |
| Next page |