adman85 Posted January 9, 2012 Share 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. Link to comment Share on other sites More sharing options...
rickerhk Posted January 9, 2012 Share 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 Link to comment Share on other sites More sharing options...
adman85 Posted January 9, 2012 Author Share Posted January 9, 2012 Hey thanks man, I'll give that a shot. Cheers for the link too, sent you a kudos bud :D Link to comment Share on other sites More sharing options...
adman85 Posted January 9, 2012 Author Share Posted January 9, 2012 (edited) EDIT; Question answered, thread can be closed :D Edited January 9, 2012 by adman85 Link to comment Share on other sites More sharing options...
rickerhk Posted January 9, 2012 Share 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 Link to comment Share on other sites More sharing options...
Recommended Posts