Jump to content
Sign in to follow this  
A.W.O.L

Get gun to randomly fire

Recommended Posts

Ok Have made a huge long range artilery about the size of a building. This kind of weapon does not engae anything as the targets in its range would be several miles away. Therefore it is mainly for looks and to be used as an objetive target. However during the mission wi have made where uhave to assualt it, i would like it to be firing seemingly at the front say about 10 miles away. This means that in reality it must just be firing at nothing. Can u make a unit fire just for the hell of it without firng at something?

Share this post


Link to post
Share on other sites

Place an object in the air away from it. On each artillery peice do a doTarget command to target the object. And in a trigger in the Activation field do the doFire command. And have the trigger activate whenever you need it. (I.E. Radio Alpha or when a condition is met)

Share this post


Link to post
Share on other sites

Does it have to be a certain distance away? And does it have to be of the opposite side? I have german artillery that i want firing into the distance just like A.W.O.L wanted, I want to create the 2nd episode of band of brothers where they have to lay waste to 4 german guns, got the trenches and guns under cammo netting, just need them to fire seemingly into the distance!

Share this post


Link to post
Share on other sites

I would try placing an empty oject (I.E. Sandbag wall) up and into the distance. If you use doTarget and doFire commands then it should look like it's firing at the Object.

Share this post


Link to post
Share on other sites

Right, the gun aims up and looks ready to fire (so i imagine the dotarget part is correct) but then it doesnt fire...

This is what ive put in the guns init field

</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Code Sample </td></tr><tr><td id="CODE">This setpos [getpos this select 0, getpos this select 1, (getpos this select 2) + 1]; this dotarget target; this dofire target<span id='postcolor'>

the gun is above the ground by a 1 unit coz its sat on some pallets.

Share this post


Link to post
Share on other sites

Try:

</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Code Sample </td></tr><tr><td id="CODE">

unitname fire "weaponname"

<span id='postcolor'>

That fires the weapon on command, for anything, tanks, helos, mg's (but soldiers will fire straight into the air with that command.)

Share this post


Link to post
Share on other sites

Hehe, just my luck, i dont know the name of the weapon that it fires! confused.gif

Ill try downloading an object pack and try using a west object instead of an empty 1, it may see it as a threat! biggrin.gif

Share this post


Link to post
Share on other sites

</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Quote (Ruskiesrule @ Dec. 26 2002,14:05)</td></tr><tr><td id="QUOTE">you could use a trigger the repeats those command lines and change them 3 time thingys!<span id='postcolor'>

But if you want it firing often for a long time. Tha'ts a lot of triggers. confused.gif

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×