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:
|
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
|
|
|