Jump to content
Sign in to follow this  
D. Patterson

Create Object, then delete it (in MP)

Recommended Posts

So, I want to keep it down to one file, and keep minimum the number of non-private variables. I think the best way to call it is via trigger. When the condition is met, "Spawn Object" addAction is added runs the script. When the condition ceases to be met, it will remove the action and delete the object.

Share this post


Link to post
Share on other sites

A couple of waituntils would probably suffice, one at the top of the script before the addAction command, then one after waiting for the condition to change, after which the object is deleted, you could also pass a boolean through the addAction into the script, and if true then delete the object.

You shouldn't need a trigger with the above methodology.

Edited by JShock

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×