Page 1 of 1
On object destruct code
Posted: Thu Sep 03, 2009 8:35 pm
by General_Nate
Hi, I was wondering what the code would be to pull off something like this:
Once an object gets destroyed, I want text to show up where the chat is. I'm not sure what code to use. Can someone tell me how or give me the code please?
Re: On object destruct code
Posted: Fri Sep 04, 2009 3:49 am
by Frisbeetarian
It's bad to rely on people to just feed you code. You know the old adage, "Give a man a fish, feed him for a day. Teach a man to fish, feed him for a lifetime."
The first thing you need to do is to figure out what functions you need to use. An object getting destroyed sounds like an event. Look though the scripting document to figure out what event you want to use. You also want a message to pop up. What in the campaigns does that? Look through the campaign scripts to see how they handle messages.
Tell us what you think those two things should be and we can help you further. You could even go to the next step now by searching the campaign scripts for the event you choose to see how it is set up.
Re: On object destruct code
Posted: Fri Sep 04, 2009 8:39 am
by General_Nate
Frisbeetarian wrote:It's bad to rely on people to just feed you code. You know the old adage, "Give a man a fish, feed him for a day. Teach a man to fish, feed him for a lifetime."
The first thing you need to do is to figure out what functions you need to use. An object getting destroyed sounds like an event. Look though the scripting document to figure out what event you want to use. You also want a message to pop up. What in the campaigns does that? Look through the campaign scripts to see how they handle messages.
Tell us what you think those two things should be and we can help you further. You could even go to the next step now by searching the campaign scripts for the event you choose to see how it is set up.
Thanks man! I will. And yes, I am fond of that quote.
