Jump to content
Sign in to follow this  
j-man

Help with the 'fire' command

Recommended Posts

I have a soldier with an AK47 and I want him to fire it. So I tried both

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">this Fire [ak47, ak47]

AND

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">this fire "ak47"But for all he does is stand there doing nothing mad_o.gif

I cheked the command reference and it said some thing like this

Quote[/b] ]unitname Fire [muzzle, mode]

Not sure what this means rock.gif

Share this post


Link to post
Share on other sites
Quote[/b] ]have u specified a target yet, with dotarget?

Yea, he's targeting a gamelogic

Share this post


Link to post
Share on other sites
Quote[/b] ]have u specified a target yet, with dotarget?

Yea, he's targeting a gamelogic

Hi j-man

Wont work. Gamelogic needs to be an object. Use an invisible target. We created one special for the technology demo of CoC_UA. We call it an Indirect Fire Target, not enough on its own for UA you still need an artillery computer and trained NN to get it to hit long distance objects plus massive calculations.

BUT all you need is a CoC_IFT equivalent you can use a watch or other small OFP object too.

Kind Regrds Walker

Share this post


Link to post
Share on other sites

you will have to add " around the string

e.g.

e1 Fire ["ak47", "burst"]

where e1 is the name of the soldier you want to use his gun.

Also, if no target is set, the soldier will fire into the sky.

Share this post


Link to post
Share on other sites

just use the invisible targets from the BAS tonal pack with the line:

_Unite doFire _target

Share this post


Link to post
Share on other sites
Quote[/b] ]

BUT all you need is a CoC_IFT equivalent you can use a watch or other small OFP object too.

what do u mean "watch"? is it that little thing that u get with editor upgrade (by kegetys) rock.gif

Share this post


Link to post
Share on other sites
Quote[/b] ]

BUT all you need is a CoC_IFT equivalent you can use a watch or other small OFP object too.

what do u mean "watch"? is it that little thing that u get with editor upgrade (by kegetys) rock.gif

what about just having the unit aim at an coodinate?

unit doTarget [23,23,2]

or place an invincible H as walker said earlier.

Share this post


Link to post
Share on other sites
Quote[/b] ]

BUT all you need is a CoC_IFT equivalent you can use a watch or other small OFP object too.

what do u mean "watch"? is it that little thing that u get with editor upgrade (by kegetys) rock.gif

what about just having the unit aim at an coodinate?

unit doTarget [23,23,2]

or place an invincible H as walker said earlier.

Hi The_Taurus

The problem is not so much targeting. It is getting it to fire at something that does not exist as an object or apear as a threat.

Kind Regards Walker

Share this post


Link to post
Share on other sites

hey

I put this in a waypoint for a soldier named ""DD""

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">this dotarget tt

Then in a trigger that is delayed for 5 seconds I put this

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">dd dofire tt;dd fire "m16"

tt being the target E. Now the soldier looks as if he is targeting the target E but whenever it gets to dd fire "m16" then he fires up into the air.......help crazy_o.gif .....please sad_o.gif

Share this post


Link to post
Share on other sites

you need to change

this doTarget

to

dd doTarget

this means the waypoint not the unit itself I think.

walker

Yes this is true ;)

However, you can make an unit to fire at an coordinate

unit doTarget [x,y,z]

unit fire "gun"

I used this in an "simultated artillery shooting" for CwC 1.46

Share this post


Link to post
Share on other sites

Problem, i've come to a conclusion well......that.....soldiers just don't like destroying objects such as refrigerators and desks and Target E's..........

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  

×