how can i put a weapon on someone's back . tx
how can i put a weapon on someone's back . tx
I don't think it's possible. In ArmA I've only managed to make soldier tilt his weapon.
You can do it by setting his behaviour to safe or careless.
Weapon to back ?
Well... I only know that if you chose your AT weapon and get down again, you have both, your rifle and your AT launcher on your back.
The other thing is you can double tab (2x) left Ctrl to harness your rifle.
unit1 action ["WEAPONINHAND"]
unit1 action ["WEAPONONBACK"]
Nope.Originally Posted by (XCess @ Dec. 25 2006,15:15)
Ain't working for me.
It says:
Do I understand it correctly that "unit1" is soldier's name ?Originally Posted by [b
Yes, unit1 is the name you give the soldier when creating him.
Keep in mind that the unit has to be in the correct behaviour mode to have the weapon on back (safe or careless)
Oh yes, I forgot to mention that the weaponOnBack animation has been changed in Armed Assault, it now resembles Sanctuary's Patrol Anim pack in that the soldiers just hold their weapons low rather than slining them over their shoulder.
Still same.
Even with this setBehaviour "SAFE"
EDIT on EDIT: Yes, I suspected that this was the problem.
Go into the editor.
Place a player unit.
In the init field type [this setBehaviour "safe"]
Now create a trigger activated by radio
In the onActivation type [player action "WeaponOnBack"]
Now preview, fire off a shot to get the weapon in ready state, and then hit the radio trigger. Thenyou'll see the difference this command makes, not much, but it's nicer for patrolling than having the weapon at a constant ready state.
Now I can't even get this inside the field.
If you mean <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">player action ["WeaponOnBack"][/QUOTE]
instead of
<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">player action "WeaponOnBack"[/QUOTE]
than it'll just say what I've typed before:
EDIT: Now I found that out !Originally Posted by [b
<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">player action ["WeaponOnBack", UNIT_NAME][/QUOTE]
But unfortunately it'll do same thing like
<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">this setBehaviour "SAFE" ("CARELESS")[/QUOTE].
Try
<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">
player action ["WeaponOnBack",player]
[/QUOTE]
And yes, I did miss the [ ] in my previous post
**edit**
Looks like you already found it