On object destruct code

In this forum you will find and post information regarding the modding of Star Wars Battlefront 2. DO NOT POST MOD IDEAS/REQUESTS.

Moderator: Moderators

Post Reply
User avatar
General_Nate
Lieutenant General
Lieutenant General
Posts: 689
Joined: Sun Jun 28, 2009 4:01 pm
Projects :: None because BFII is not working
Games I'm Playing :: Minecraft
xbox live or psn: No gamertag set
Location: 127.0.0.1

On object destruct code

Post 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?
User avatar
Frisbeetarian
Jedi
Jedi
Posts: 1233
Joined: Wed Sep 12, 2007 3:13 pm

Re: On object destruct code

Post 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.
User avatar
General_Nate
Lieutenant General
Lieutenant General
Posts: 689
Joined: Sun Jun 28, 2009 4:01 pm
Projects :: None because BFII is not working
Games I'm Playing :: Minecraft
xbox live or psn: No gamertag set
Location: 127.0.0.1

Re: On object destruct code

Post 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. :wink:
Post Reply