PDA

View Full Version : Weapon on back



miggie
Dec 25 2006, 00:34
how can i put a weapon on someone's back . tx

Deadfast
Dec 25 2006, 13:11
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.

[CS]SOBR[1st-I-R]
Dec 25 2006, 13:14
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.

XCess
Dec 25 2006, 13:15
unit1 action ["WEAPONINHAND"]
unit1 action ["WEAPONONBACK"]

Deadfast
Dec 25 2006, 13:21
unit1 action ["WEAPONINHAND"]
unit1 action ["WEAPONONBACK"]
Nope.
Ain't working for me.
It says:

Quote[/b] ]'soldier |#|action ["WEAPONONBACK"] '
Error Field has 1 component, should have 2

Do I understand it correctly that "unit1" is soldier's name ?

XCess
Dec 25 2006, 13:22
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.

Deadfast
Dec 25 2006, 13:25
Still same.
Even with this setBehaviour "SAFE"

EDIT on EDIT: Yes, I suspected that this was the problem.

XCess
Dec 25 2006, 13:28
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.

Deadfast
Dec 25 2006, 13:35
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 &#91;&#34;WeaponOnBack&#34;&#93;[/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 &#34;WeaponOnBack&#34;[/QUOTE]
than it&#39;ll just say what I&#39;ve typed before:

Quote[/b] ]&#39;soldier &#124;#&#124;action ["WEAPONONBACK"] &#39;
Error Field has 1 component, should have 2

EDIT: Now I found that out &#33;
<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">player action &#91;&#34;WeaponOnBack&#34;, UNIT_NAME&#93;[/QUOTE]
But unfortunately it&#39;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 &#34;SAFE&#34; &#40;&#34;CARELESS&#34;&#41;[/QUOTE] http://forums.bistudio.com/oldsmileys/confused_o.gif .

XCess
Dec 25 2006, 13:42
Try
<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">
player action &#91;&#34;WeaponOnBack&#34;,player&#93;
[/QUOTE]
And yes, I did miss the [ ] in my previous post http://forums.bistudio.com/oldsmileys/whistle.gif

**edit**
Looks like you already found it http://forums.bistudio.com/oldsmileys/biggrin_o.gif

Deadfast
Dec 25 2006, 13:44
Check previous post.
Just found that out.

Unfortunately it&#39;s a same thing like setting behaviour to safe or careless.

miggie
Dec 25 2006, 14:25
too bad. it is possible for like some seconds when u take a soldier and in the debug thing you give him te weapon.. than it will be on his back. until he moves off course

http://forums.bistudio.com/oldsmileys/yay.gif

2 bad

MattXR
Dec 25 2006, 20:08
I wish we could carry 2 weapons at the same time have one in hand and one on back. As we have seen we can get a weapon on the back and a AT weapon.. hope BIS make it possible.

SEAL84
Dec 28 2006, 00:03
I&#39;ve found that the player can&#39;t holster a sidearm either. AIs in safe mode will put the pistol away and run around as if they&#39;re unarmed - unlike OFP where you could always tell if someone was concealing a pistol.

Make yourself a US officer and no matter what behaviour you&#39;re in you&#39;ll have the M9 in your hand. I put setbehaviour safe in the init field and made 2 playable characters - start as the officer with gun in hand, then switch to the other guy: he&#39;ll put the gun away when you switch players and then if you switch back, you&#39;ll immediately whip it out again. Very annoying.

What you can do is use the action command to put the pistol away, but then you look as if you&#39;re holding an invisible rifle.

ColonelSandersLite
Dec 28 2006, 11:14
That&#39;s kinda neat that AI&#39;s do that though. You could do something with concealed weapons and a checkpoint that would come out pretty nifty if done right.

otester
Dec 28 2006, 12:02
So how do I set a name for each unit, in the init field?

Big Dawg KS
Dec 28 2006, 12:17
So how do I set a name for each unit, in the init field?
The name field... http://forums.bistudio.com/oldsmileys/whistle.gif