Rejn 0 Posted April 2, 2007 Ok ive tested the unit with both a sentry and move waypoint in which Ive written: unitname action ["weapononback"]; Ive also tried it with a trigger... the unit is set to safe. I get expected 2 elements error and I cant figure out whats wrong.. I tried unitname action ["weapononback",unitname]; Which gets rid of the error but doesnt work... works if I put the player as unitname in the end but only for player unit ... :/ whats going on? D: Share this post Link to post Share on other sites
nuxil 2 Posted April 2, 2007 what behaviour do you have on your units? form the wiki unitname action ["WEAPONINHAND"] unitname action ["WEAPONONBACK"] Soldier 'unitname' takes weapon from/to back. Change is persistent with player, but AI units will switch back if their behaviour mode is incompatible (SAFE or CARELESS with WEAPONINHAND, and STEALTH, COMBAT & AWARE with WEAPONONBACK). so if the behaviour is incompatible then offource it wount work Share this post Link to post Share on other sites
Rejn 0 Posted April 2, 2007 Ive tried both safe and aware D: neither work for me with weapononback. D: Ive gotten around it for the moment as i needed it for an intro by using playmove animation... but id still like to know how to do it via an action.. I will keep experimenting. thnks. Share this post Link to post Share on other sites
nuxil 2 Posted April 2, 2007 hmm i been trying to.. and i get the same problem.. the unit "AI" wount put the weapon on the back.. A) we both are doing it totaly wrong b) ther is a bug in arma.. i hope some other people try this out to.. i added the function in a trigger.. and when i trigger the trigger i see the unit Kinda moves a bit.. its like he wants to put the weapon on the back but cant.. i tested with a singel unit and a player.. i tryed all behaviours too.. nogood.. something is fishy! Share this post Link to post Share on other sites
Rejn 0 Posted April 2, 2007 yeah i don't know whats going on with it.. but as you said I suspect foul play haha. Bug Share this post Link to post Share on other sites
Big Dawg KS 6 Posted April 2, 2007 There no longer is any weapon on back action in ArmA. The whole thing was changed. In OFP you had an action (in the action menu) to put your weapon on your back, but in ArmA the action was removed and replaced with the raise/lower weapon keys. If the action doesn't exist (meaning you can clearly see it in the action menu) you can't perform it. Share this post Link to post Share on other sites
CarlGustaffa 4 Posted April 3, 2007 I'm a bit curious to why so many now obsolete actions are still listed on the wiki, under ArmA Actions Such as this mentioned "WEAPONONBACK" action. Anyone with wiki access should update this section to lessen the confusion for newbies (myself incuded in that newbie group). However, when I try to do that action (had to try ), I'm getting an errror message saying "Error 1 elements provided, 2 expected"? Ehh, what's up with this then? Same goes for several/most other actions. I tried using ["WEAPONONBACK", "M4AIM"] and oposite but nothing. I tried true, but nothing. I tried "TAKEWEAPON" from an ammocrate (waypoint on act.) and that works, so I think I got the syntax about right. I prefer the current relaxed method for typical city scenarios, but a mountainpatrol at ease would rarely carry it this way but rather have it on back. At the same time, I wouldn't like players or myself to immediately know if the enemy was being in safe or careless mode just by watching their weapon holding. The animation is already built into the engine, maybe BIS should upgrade with 2 new behaviours; SAFE BACK and CARELESS BACK, and rename the current ones to SAFE LOW and CARELESS LOW. Dunno, just an idea. It seems like this feature is highly asked for. Share this post Link to post Share on other sites
Big Dawg KS 6 Posted April 3, 2007 I'm a bit curious to why so many now obsolete actions are still listed on the wiki, under ArmA Actions  Such as this mentioned "WEAPONONBACK" action. Anyone with wiki access should update this section to lessen the confusion for newbies (myself incuded in that newbie group). However, when I try to do that action (had to try ), I'm getting an errror message saying "Error 1 elements provided, 2 expected"? Ehh, what's up with this then? Same goes for several/most other actions. I tried using ["WEAPONONBACK", "M4AIM"] and oposite but nothing. I tried true, but nothing. I tried "TAKEWEAPON" from an ammocrate (waypoint on act.) and that works, so I think I got the syntax about right. I prefer the current relaxed method for typical city scenarios, but a mountainpatrol at ease would rarely carry it this way but rather have it on back. At the same time, I wouldn't like players or myself to immediately know if the enemy was being in safe or careless mode just by watching their weapon holding. The animation is already built into the engine, maybe BIS should upgrade with 2 new behaviours; SAFE BACK and CARELESS BACK, and rename the current ones to SAFE LOW and CARELESS LOW. Dunno, just an idea. It seems like this feature is highly asked for. The most common syntax for actions in OFP was 'unit action ["ACTION",unit]' Share this post Link to post Share on other sites
kevb0 0 Posted April 4, 2007 Is there any way to check if a unit is doing a specific action? I've looked through the Biki, and couldn't find it. Share this post Link to post Share on other sites
Big Dawg KS 6 Posted April 4, 2007 Is there any way to check if a unit is doing a specific action? I've looked through the Biki, and couldn't find it. No, not really, and I don't see how you could... actions only trigger stuff, they aren't states (that's my understanding of it at least). What's important to remember is that 'action' refers only to the initiation (via the action menu) of something else (this other task not being the actual action), wether it be animations, embarking/disembarking, etc... you can probably compare them to a radio trigger (in that they just perform some task when someone activates them) - but again that's only my understanding of it, I'm sure a dev could give you a proper (correct, if mine isn't) explanation. Share this post Link to post Share on other sites