Script [message #277795] |
Tue, 07 August 2007 21:01 |
_SSnipe_
Messages: 4121 Registered: May 2007 Location: Riverside Southern Califo...
Karma: 0
|
General (4 Stars) |
|
|
What script makes it when somthing spawns it will die?
all i want is when something spawns it will die rightaway
a Null object
anyhelp?
|
|
|
Re: Script [message #277844 is a reply to message #277795] |
Wed, 08 August 2007 07:51 |
|
reborn
Messages: 3231 Registered: September 2004 Location: uk - london
Karma: 0
|
General (3 Stars) |
|
|
joe937465 wrote on Wed, 08 August 2007 00:01 | What script makes it when somthing spawns it will die?
all i want is when something spawns it will die rightaway
a Null object
anyhelp?
|
Please be more specific, what do you actually want to do?
|
|
|
Re: Script [message #277944 is a reply to message #277795] |
Wed, 08 August 2007 17:16 |
_SSnipe_
Messages: 4121 Registered: May 2007 Location: Riverside Southern Califo...
Karma: 0
|
General (4 Stars) |
|
|
make time explosions someoen in the map like every 120 second it will ion strike at a spot
|
|
|
Re: Script [message #277997 is a reply to message #277944] |
Thu, 09 August 2007 03:26 |
|
reborn
Messages: 3231 Registered: September 2004 Location: uk - london
Karma: 0
|
General (3 Stars) |
|
|
joe937465 wrote on Wed, 08 August 2007 20:16 | make time explosions someoen in the map like every 120 second it will ion strike at a spot
|
Please take 10 seconds to re-read your post and then fix it so it will make sense. I can't work out whether you want a model of a character to blow up every two minutes at a fixed spot, or whether you want something else.
Either way you should not make it that hard for someone to help you.
|
|
|
|
Re: Script [message #278003 is a reply to message #277795] |
Thu, 09 August 2007 04:26 |
_SSnipe_
Messages: 4121 Registered: May 2007 Location: Riverside Southern Califo...
Karma: 0
|
General (4 Stars) |
|
|
just like an explosion in one spot i choose nothing else there just out of no one a explosion and then i was thinking as i read that one guys post make it so i can choose where so edit a spawner or somthing so explosions in spots i choose every idk 15 secs
|
|
|
|
Re: Script [message #278091 is a reply to message #277795] |
Thu, 09 August 2007 14:14 |
_SSnipe_
Messages: 4121 Registered: May 2007 Location: Riverside Southern Califo...
Karma: 0
|
General (4 Stars) |
|
|
well maybe a null spawner with a explosion when created at the random spawn spots?
|
|
|
|
Re: Script [message #278104 is a reply to message #277795] |
Thu, 09 August 2007 16:09 |
|
reborn
Messages: 3231 Registered: September 2004 Location: uk - london
Karma: 0
|
General (3 Stars) |
|
|
You could go with Jerad's way, or you could do it via your scripts.dll
A small example for you to expand upon:
if (strstr(CurrMap,"C&C_Complex.mix")) {
Vector3 explosion_location;
explosion_location.X= -30.044f;
explosion_location.Y= -0.492f;
explosion_location.Z= 7.453f;
Commands->Create_Object("Beacon_Ion_Cannon_Anim_Post",explosion_location);
Commands->Create_Explosion("Explosion_Mine_Remote_01",explosion_location,0);
You could add more explosion_locations per map, then set them on a timer, so they go off all over the place at once on a timer.
Or you could create an array of explosion locations, then generate a random integer to choose one of the locations per map to use and run that on a timer. So it goes off at reandom locations on a set timer.
You could even set the timer as random too...
Perhaps even create some gloomy weather effect to and set the fog high and call it an ion storm. senda message in-game warning about the "warning, ion storm approaching".
[Updated on: Thu, 09 August 2007 16:10] Report message to a moderator
|
|
|
Re: Script [message #278142 is a reply to message #277795] |
Thu, 09 August 2007 18:39 |
_SSnipe_
Messages: 4121 Registered: May 2007 Location: Riverside Southern Califo...
Karma: 0
|
General (4 Stars) |
|
|
cool ill try it out but ya kinda hard idk hwo to dot he random spiot crap and timer >.< (still saving money up for c++ for dumy the one i downaloded is all messed up )
|
|
|