
UnevenElefant5
Joined: May 3, 2008
its been fun yall, i'll never forget this site :')
|
Posted: Feb 27, 2009 01:25 AM
Msg. 1 of 14
K, so I want to make projectiles spawn in the sky, Mythril suggested using a script, what would the script be? Thanks
|
|
|

Mythril
- Screenshot Guru -
Joined: Mar 29, 2008
Jeffrey Albert Waldo
|
Posted: Feb 27, 2009 05:11 AM
Msg. 2 of 14
1. Make a flag in the sky, name it
2. Make an effect that spawns a projectile.
2. Make a script like: (script startup boom (effect_new ) )
Compile scripts, blah blah blah, test ingame.
|
|
|

UnevenElefant5
Joined: May 3, 2008
its been fun yall, i'll never forget this site :')
|
Posted: Feb 27, 2009 09:38 AM
Msg. 3 of 14
Quote: --- Original message by: Mythril 1. Make a flag in the sky, name it
2. Make an effect that spawns a projectile.
2. Make a script like: (script startup boom (effect_new ) )
Compile scripts, blah blah blah, test ingame. I get: [boom line 2] the "effect_new" call requires exactly 2 arguments.: (effect_new) recompiling scripts after scenarios were merged [boom line 1] this parenthesis is left unmatched.: (script startup boom o_0
|
|
|

black doom
Joined: Oct 4, 2008
we will never stop, we can win the "impossible"
|
Posted: Feb 27, 2009 10:58 AM
Msg. 4 of 14
Quote: --- Original message by: UnevenElefant5Quote: --- Original message by: Mythril 1. Make a flag in the sky, name it
2. Make an effect that spawns a projectile.
2. Make a script like: (script startup boom (effect_new ) )
Compile scripts, blah blah blah, test ingame. I get: [boom line 2] the "effect_new" call requires exactly 2 arguments.: (effect_new) recompiling scripts after scenarios were merged [boom line 1] this parenthesis is left unmatched.: (script startup boom o_0 get halo scripting bible. should help you at this.
|
|
|

UnevenElefant5
Joined: May 3, 2008
its been fun yall, i'll never forget this site :')
|
Posted: Feb 27, 2009 05:56 PM
Msg. 5 of 14
Ok, I have a flag in the sky called "boom" and an effect called "boom" in weapons\rog\effects
my script looks like this:
(script startup boom (effect_new "weapons\rog\effects\boom" "boom") )
And the projectile still doesn't come from the sky :V
|
|
|

Gamma927
Joined: Jun 12, 2008
Steam: gamma927
|
Posted: Feb 27, 2009 06:16 PM
Msg. 6 of 14
The effect occurs at the given flag. So put the flag in the sky, and change the effect to nukez. I guarantee nuke shots will be appearing.
|
|
|

UnevenElefant5
Joined: May 3, 2008
its been fun yall, i'll never forget this site :')
|
Posted: Feb 27, 2009 08:19 PM
Msg. 7 of 14
still not working :V I thought it might be my effect tag, but i tested the script with some other effects, and none of those work either. Can someone please tell me how to fix this?
|
|
|

Gamma927
Joined: Jun 12, 2008
Steam: gamma927
|
Posted: Feb 27, 2009 08:22 PM
Msg. 8 of 14
The effects occur on the flag. Unless there's an effect that's something falling, idk if you can do anything. But you can make pretty colors in the sky :)
|
|
|

UnevenElefant5
Joined: May 3, 2008
its been fun yall, i'll never forget this site :')
|
Posted: Feb 27, 2009 08:27 PM
Msg. 9 of 14
Quote: --- Original message by: Gamma927 The effects occur on the flag. Unless there's an effect that's something falling, idk if you can do anything. But you can make pretty colors in the sky :) My effect spawns a projectile. Wait... Should I make the effect being activated by the script the firing effect?
|
|
|

Me KS
Joined: Feb 2, 2008
Desire is Reality. Xfire: jetmaster23
|
Posted: Feb 28, 2009 11:38 AM
Msg. 10 of 14
Quote: --- Original message by: UnevenElefant5 Ok, I have a flag in the sky called "boom" and an effect called "boom" in weapons\rog\effects
my script looks like this:
(script startup boom (effect_new "weapons\rog\effects\boom" "boom") )
And the projectile still doesn't come from the sky :V Well, it's a startup script, so the effect is created right when you load the map and then never created again. Maybe it does spawn, but you don't have time to see it. If that's the case, then try adding (sleep "ticks") before the (effect_new) so that you have time to see it. I'd say a minute is good, so that would be 60 seconds times 30 ticks per second = 1800 ticks total. So add (sleep 1800) before (effect_new), and then see if it works after a minute.
|
|
|

Gamma927
Joined: Jun 12, 2008
Steam: gamma927
|
Posted: Feb 28, 2009 11:46 AM
Msg. 11 of 14
Or use a continuous script, so fireworks go off all the time. You would use: (script continuous boom (sleep 500) (effect_new "weapons\rog\effects\boom" "boom") )
|
|
|

UnevenElefant5
Joined: May 3, 2008
its been fun yall, i'll never forget this site :')
|
Posted: Feb 28, 2009 03:39 PM
Msg. 12 of 14
Quote: --- Original message by: Gamma927Or use a continuous script, so fireworks go off all the time. You would use: (script continuous boom (sleep 500) (effect_new "weapons\rog\effects\boom" "boom") )
But the point is to make the effect spawn when you shoot.
|
|
|

Zetal
Joined: Jan 16, 2009
|
Posted: Feb 28, 2009 03:55 PM
Msg. 13 of 14
erm...I'm not sure if this is what you want, but could try moving the Primary Trigger node in the model up like 200 units or so.
|
|
|

UnevenElefant5
Joined: May 3, 2008
its been fun yall, i'll never forget this site :')
|
Posted: Feb 28, 2009 06:29 PM
Msg. 14 of 14
Yeah i already did that. I looked at the one in Ambush and mine was now working like theirs all along and I didn't even know it :P Thanks for your help guys :) Edited by UnevenElefant5 on Feb 28, 2009 at 06:30 PM
|
|
|