Author Topic: Deleting datablocks  (Read 1082 times)

I need to delete the datablock playerTeleportEmitterB. I tried to do this in my script with this:
Code: [Select]
playerTeleportEmitterB.delete();When executing the script, I got this error.
Code: [Select]
ERROR: delete - you cannot delete datablocks directly
BackTrace: ->SM_StartMission->createServer->onServerCreated->loadAddOns
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.
« Last Edit: September 12, 2010, 10:31:54 AM by Demian »

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.

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.

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.
Not what I want.
Try setting the uiName of the datablock to nothing.
Didn't work.
« Last Edit: September 12, 2010, 02:44:02 PM by 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

Try testing what I suggested but on a dedicated server. If it doesn't work then that's a bummer, but if it does then the issue is just with the fact that you're running the server locally.

Well I have no idea what happened but it works. I simply set the uiName to nothing. Just like I did before. I'm calling majicks on this, but hey it works! =)