adman85 Posted January 9, 2012 Posted January 9, 2012 I have an ingestible that makes an activator appear, what I need to do now is delete the newly created activator through script. Is there a delete all function, or destroy self command (for the object, not the player). I know how to disable things that were placed in the GECK, but I don't know how to make my script reference newly created things.
rickerhk Posted January 9, 2012 Posted January 9, 2012 set rMySpawnedObject to Player.Placeatme Object Then do stuff with rMySpawnedObject When done:rMySpawnedObject.disable rMySpawnedObject.markfordelete rMySpawnedObject is a ref variable http://geck.bethsoft.com/index.php/PlaceAtMe
adman85 Posted January 9, 2012 Author Posted January 9, 2012 Hey thanks man, I'll give that a shot. Cheers for the link too, sent you a kudos bud :D
adman85 Posted January 9, 2012 Author Posted January 9, 2012 (edited) EDIT; Question answered, thread can be closed :D Edited January 9, 2012 by adman85
rickerhk Posted January 9, 2012 Posted January 9, 2012 For an ingestible, you will probably need to put a duration on the base effect of 10 seconds, then in the ScripteffectFinish block, put the disable and markfordelete commands. Edit - Ninja'd
Recommended Posts