
Xoronatus
Joined: Dec 6, 2010
Taking a break
|
Posted: Jan 6, 2011 08:41 PM
Msg. 1 of 5
Hi, I was wondering if you can make special effects appear just on the ground or in the air with scripts. Well actually, I know it's possible because Bungie did it at the very beginning of a10 when that crewman gets blown up. So how would I do that, with .scenery or device machines? What scripting would I do?
|
|
|

rerout343
Joined: Aug 7, 2010
Targeted and Firing
|
Posted: Jan 6, 2011 09:14 PM
Msg. 2 of 5
I'm not sure if there is a command to specificly spawn an effect, but a possible work-around would be to create a scenery file with an invisible 3d model, and give it an effect that will only be used once.
Then your script would be somthing like:
(script continuous [script name]) [Whatever triggers your effect] (object_create [name of your scenery]) (sleep [length of time for your effect to complete]) (object_destroy [name of your scenery])
I hope this helps.
|
|
|

Xoronatus
Joined: Dec 6, 2010
Taking a break
|
Posted: Jan 7, 2011 12:53 AM
Msg. 3 of 5
So then I could spawn a .scenery that has the gbxmodel of a frag grenade (nice and small) and I could give that .scenery a detonation effect like a frag grenade explosion for example. And if I use the script (object_destroy thingy) then when the object is destroyed it will make a frag explosion? Edited by Xoronatus on Jan 7, 2011 at 12:53 AM
|
|
|

MoooseGuy
Joined: Aug 10, 2008
I Approve This Message.
|
Posted: Jan 7, 2011 05:09 AM
Msg. 4 of 5
There's an easier way than rerout's method. Create a flag in you scenario and name it anything (I'll call it FLAGNAME). In your script, at the time you want the effect to happen, do this: (effect_new DIRECTORY FLAGNAME) Replace DIRECTORY with the directory of the desired effect tag. I hope this helped. 
|
|
|

rerout343
Joined: Aug 7, 2010
Targeted and Firing
|
Posted: Jan 7, 2011 03:23 PM
Msg. 5 of 5
Quote: --- Original message by: MoooseGuyThere's an easier way than rerout's method. Create a flag in you scenario and name it anything (I'll call it FLAGNAME). In your script, at the time you want the effect to happen, do this: (effect_new DIRECTORY FLAGNAME) Replace DIRECTORY with the directory of the desired effect tag. I hope this helped.  Oh, I was wondering if there was a script command for effects. Of course it seems that if I can figure out a method to do something, that means there is a way that is 10 times easier than mine.
|
|
|