Jump to content
Sign in to follow this  
eclipserh

Getting enemy to fire vehicle weapons

Recommended Posts

I checked these forums and could'nt find any information on forcing an enemy soldier to fire a vehicle weapon at a target. You would think that the command would be "_enemysoldier doFire _goodsoldier;". While this command will work when the enemy soldier is out of a vehicle, they will not fire at the _goodsoldier while sitting in a vehicle weapon. Can someone please give me the correct syntax for accomplishing this?

Share this post


Link to post
Share on other sites

Is it just me or does the scripting in the game seem a little weaker than OFP?

Share this post


Link to post
Share on other sites

not weaker by any means but the difference lies in that ofp works while arma generally says one thing but does another.

for instance beware of "player" which works in init.sqs until a JIP player comes around in which case it stays null for quite some time (catch it with @!isNull group player).

AI respawning might be in a brand new group after @alive, check for it and use join/selectLeader (not often but it does happen).

and another 4.6 billion features making you look like a shit missionmaker while it in fact is ArmA.

I've fought nervous breakdowns bringing my OdenAAS series from version 1 and 2 in OFP to version 3, 4, 5 and now 6 in ArmA and god knows I'm getting sick of it.

After quite a few hours in config.cpp (yes, even here some ppl seem to not care shit over their job) and missions and betatesting I have extremely low trust upon BIS programmers.

Remember to secure data yourself, you get nothing for free in ArmA.

Share this post


Link to post
Share on other sites

Try naming the tank/vehicle doing the firing.

First you need to get the tank to look at the target...

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">tank dowatch civtarget Civtarget being the name of an unfortunate civilian volunteer.

then do the firing with

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">tank fire "m256"

this example is using the M1A1 Abrams. If you ever want to check the name of the weapons and magazines a unit has, put

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">hint format ["%1\n%2", weapons this, magazines this]; into the units init line in the editor.

Happy times.

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  

×