Staredit Network

Staredit Network -> Modding Assistance -> [SOLVED] Multiple Projectiles
Report, edit, etc...Posted by TheStrategist on 2006-09-27 at 21:01:40
Two problems...

1. I've changed the Neutron Flare weapon for the Crosair so that it would fire longbolt missiles. Well, I want to achieve the effect of missiles raining down on a target (like about 6 missiles being fired from each shot), but I have yet to accomplish it. I've only managed to fire up to two missiles at once (had to change the Factor to 2 in the weapons tab).

I've read that you need multiple attack commands for it to fire multiple missiles.

CODE
CorsairAirAttkInit:
wait            1
nobrkcodestart  
attack26
wait            1
attack26
wait            1
attack26
wait            1
attack26
wait            1
nobrkcodeend    
gotorepeatattk  
goto            CorsairGndAttkToIdle


Is this code right, or is something else missing?

2. I am trying to change the Valkyrie's ground firing rate so that it is the same as its firing rate for air targets. I merely copied the ValkyrieAirAttkInit and created a code for ValkyrieGndAttkInit.

CODE
ValkyrieGndAttkInit:
wait            1
nobrkcodestart  
attack25        2
wait            10
attack25        2
wait            10
attack25        2
wait            10
attack25        2
wait            10
nobrkcodeend    
gotorepeatattk  
goto            ValkyrieGndAttkToIdle


Shouldn't the above code change the firing rate?
Report, edit, etc...Posted by TERRAINFIGHTER on 2006-09-27 at 21:09:00
1. that code should work, but unless you did some .dat editing it will only fire from one side. tongue.gif
2. that should work, so long as you didn't mess up somewhere else in the script.
Report, edit, etc...Posted by DT_Battlekruser on 2006-09-27 at 22:05:14
Both should work, but note that if you want to fire several missles at once and have a cool effect, have two attack26() commands with no wait and set the missile property to Halo(Spin).
Report, edit, etc...Posted by TheStrategist on 2006-09-28 at 19:31:55
Err...

Had to redo both of these scripts. I messed up somewhere along the line, and didn't feel like hunting down the error so I rewrote the entire thing. Works like a charm now.
Next Page (1)