Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Forum » Script
Script [message #277795] Tue, 07 August 2007 21:01 Go to next message
_SSnipe_ is currently offline  _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 Go to previous messageGo to next message
reborn is currently offline  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 Go to previous messageGo to next message
_SSnipe_ is currently offline  _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 Go to previous messageGo to next message
reborn is currently offline  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 #277999 is a reply to message #277795] Thu, 09 August 2007 03:47 Go to previous messageGo to next message
Gen_Blacky is currently offline  Gen_Blacky
Messages: 3250
Registered: September 2006
Karma: 1
General (3 Stars)
He wants stuff to blow up Thumbs Up

http://s18.postimage.org/jc6qbn4k9/bricks3.png
Re: Script [message #278003 is a reply to message #277795] Thu, 09 August 2007 04:26 Go to previous messageGo to next message
_SSnipe_ is currently offline  _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 #278054 is a reply to message #277795] Thu, 09 August 2007 10:46 Go to previous messageGo to next message
Gen_Blacky is currently offline  Gen_Blacky
Messages: 3250
Registered: September 2006
Karma: 1
General (3 Stars)
lol i am still confused do u want an object to explode in a certain spots at a certain time ?

http://s18.postimage.org/jc6qbn4k9/bricks3.png
Re: Script [message #278091 is a reply to message #277795] Thu, 09 August 2007 14:14 Go to previous messageGo to next message
_SSnipe_ is currently offline  _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 #278094 is a reply to message #278091] Thu, 09 August 2007 14:22 Go to previous messageGo to next message
Jerad2142 is currently offline  Jerad2142
Messages: 3809
Registered: July 2006
Location: USA
Karma: 6
General (3 Stars)
"SUR_Timed_Death"
Or if you want it to do an ion cannon strike every time it spawns you could attach Test_Cinematic to it and then make an Ion_Strike text cinematic.


Re: Script [message #278104 is a reply to message #277795] Thu, 09 August 2007 16:09 Go to previous messageGo to next message
reborn is currently offline  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 Go to previous message
_SSnipe_ is currently offline  _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 )
Previous Topic: objects.ddb(2)
Next Topic: How to fix the 0 bug with packages
Goto Forum:
  


Current Time: Sun Nov 24 08:37:56 MST 2024

Total time taken to generate the page: 0.00799 seconds