IPB


Welcome Guest ( Log In | Register )

 Forum Rules Forum Rules
 
Reply to this topicStart new topic
> The armament within multiplayer, How to change the default armament of a unit class on respawn.
Scifer
post Mar 21 2010, 09:06
Post #1


New Member
*

Group: Members
Posts: 1
Joined: 27-September 09
Member No.: 6,582



I've done exactly as stated in Mr. Murry's guide.

I set a trigger with the following parameters:
  • Type: repeatedly
  • Condition: ! alive Soldier1
  • on Activation: [Soldier1] exec "weapon.sqs"
  • Axis a/b: 0/0

And a little tweak in weapon.sqs:
CODE
_Unit = _this select 0
@alive _Unit

removeAllWeapons _Unit
for [{_i=1},{_i<10},{_i=_i+1}] do {_Unit addMagazine "15Rnd_9x19_M9";};
_Unit addWeapon "M9";
for [{_i=1},{_i<10},{_i=_i+1}] do {_Unit addMagazine "30Rnd_9x19_MP5";};
_Unit addWeapon "MP5A5";

exit;


I'm sure the script is running on death. But something seems to be preventing the gear to change.

Please! What am I doing wrong? cry3.gif
 
Quote Post

Fast ReplyReply to this topicStart new topic
3 User(s) are reading this topic (3 Guests and 0 Anonymous Users)
0 Members:

 



Lo-Fi Version Time is now: 24th April 2024 - 08:18