j-man 0 Posted December 17, 2003 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 I cheked the command reference and it said some thing like this Quote[/b] ]unitname Fire [muzzle, mode] Not sure what this means Share this post Link to post Share on other sites
tracy_t 0 Posted December 17, 2003 have u specified a target yet, with dotarget? Share this post Link to post Share on other sites
j-man 0 Posted December 17, 2003 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
walker 0 Posted December 17, 2003 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
Taurus 20 Posted December 17, 2003 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
laulau 0 Posted December 17, 2003 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
j-man 0 Posted December 17, 2003 Thanks guys, I got it working Share this post Link to post Share on other sites
void_false 1 Posted December 18, 2003 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) Share this post Link to post Share on other sites
Taurus 20 Posted December 19, 2003 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) 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
walker 0 Posted December 19, 2003 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) 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
bmgarcangel 0 Posted January 7, 2004 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 .....please Share this post Link to post Share on other sites
Taurus 20 Posted January 7, 2004 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
bmgarcangel 0 Posted January 8, 2004 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