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?
On object destruct code
Moderator: Moderators
- General_Nate
- Lieutenant General

- Posts: 689
- Joined: Sun Jun 28, 2009 4:01 pm
- Projects :: None because BFII is not working
- xbox live or psn: No gamertag set
- Location: 127.0.0.1
- Frisbeetarian
- Jedi

- Posts: 1233
- Joined: Wed Sep 12, 2007 3:13 pm
Re: On object destruct code
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.
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.
- General_Nate
- Lieutenant General

- Posts: 689
- Joined: Sun Jun 28, 2009 4:01 pm
- Projects :: None because BFII is not working
- xbox live or psn: No gamertag set
- Location: 127.0.0.1
Re: On object destruct code
Thanks man! I will. And yes, I am fond of that quote.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.
