OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Demmun on 28 Jan 2004, 21:58:13

Title: Respawn: w/ starting weapons load
Post by: Demmun on 28 Jan 2004, 21:58:13
Greetings,

I would like to respawn my soldiers with the weapons load that they started the mission with instead of a M16 with a single magazine.

How?

Thank you in advance for any time you spend helping me with this.

-Demmun
Title: Re:Respawn: w/ starting weapons load
Post by: Planck on 28 Jan 2004, 22:15:09
Try checking this thread:

http://www.ofpec.com/yabbse/index.php?board=7;action=display;threadid=2271

Or the Respawn sticky thread at the top of the Multiplayer Forum.


Planck
Title: Re:Respawn: w/ starting weapons load
Post by: NoToRiOus on 28 Jan 2004, 22:22:16
Your need to creat a script with the weapons of ur choice

for exsample

Place a soldier on map Name him E1

RemoveAllWeapons E1

E1 AddMagazine "BizonMag"
E1 AddMagazine "BizonMag"
E1 AddMagazine "BizonMag"
E1 AddMagazine "BizonMag"
E1 AddMagazine "HandGrenade"
E1 AddMagazine "HandGrenade"
E1 AddMagazine "HandGrenade"
E1 AddMagazine "SmokeShell"
E1 AddMagazine "SmokeShell"
E1 AddWeapon "Bizon"
E1 AddWeapon "Binocular"
E1 AddWeapon "NVGoggles"

Name the script E1.sqs  and place it in our user/mission/your map

then u place a Trigger on the map

Axis a and b both on 0

Activation :None      Repeatedly

Condition: getDammage E1 > 0.9

On Activation :this exec "E1.sqs"


Then ur Soldier should respawn with a Bizion everytime (not sure if it still work on 1.94 and 1.95)

NoToRiOus