Sign in to follow this  
Ninko

Script for DestroyObject?

Recommended Posts

I need help making a script for DestroyObject that would run in the OnClosed of a placeable

I am not too sure what would have to be inside the () of the DestroyObject...

Here's what I think I would need to do (Obviously wrong!!!!) :

void main()

{

 

DestroyObject();

 

}

 

 

 

Help is much appreciated, thanks in advance.

 

EDIT: Never Mind I have worked it out with help from Hassatt Hunter!

 

I have ended up with:

void main()

{

 

DelayCommand(5.0, DestroyObject(OBJECT_SELF));

 

}

 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this