Forum Jump :

Author Message


Posts: 2
Rank:


Level: Member

Country: uk
Location:
Occupation:
Age:
In-game name:

 
#1 Posted at 2010-07-29 22:35        
     
I made a mission in which i have 4 troops available to play, in the init field of each i have - [this] execVM "loadout.sqs"; - loadout.sqs being the file where i have outlined the gear. When i launch this in the editor, all the troops have what they are supposed to. When i make a server and launch it, the troops just have M16A2 (i think) with 1 clip. Does anyone know why this is ?

Also, while im here as far as respawns go, i know how to make it so you can respawn on your squad mates but is there a way to make it so there is a max number of respawns available ?

Thanks for any help.

This post was edited by Foxhound (2010-07-30 17:56, ago)


Author Message

Pirin  



Posts: 1547
Rank:


Level: Member

Country: us
Location: Atlanta, GA
Occupation: IT
Age: 46
In-game name: kylania

 
#2 Posted at 2010-07-29 23:19        
     
Without seeing what's in your loadout.sqs and possible init.sqf not sure what we can tell you. Possibly a typo somewhere?

To limit the number of respawns you'd have to keep track of them via a variable and end the mission once the limit is reached, look into addEventHandler for a start on how to do that.


Advertisement


Author Message


Posts: 2
Rank:


Level: Member

Country: uk
Location:
Occupation:
Age:
In-game name:

 
#3 Posted at 2010-07-30 00:14        
     
Heres my loadout.sqs
_unit = _this select 0
removeAllWeapons _unit

_unit addMagazine "30Rnd_556x45_StanagSD"
_unit addMagazine "30Rnd_556x45_StanagSD"
_unit addMagazine "30Rnd_556x45_StanagSD"
_unit addMagazine "30Rnd_556x45_StanagSD"
_unit addMagazine "30Rnd_556x45_StanagSD"
_unit addWeapon "M4A1_AIM_SD_camo"
_unit selectWeapon "M4A1_AIM_SD_camo"
_unit addMagazine "15Rnd_9x19_M9SD"
_unit addMagazine "15Rnd_9x19_M9SD"
_unit addMagazine "15Rnd_9x19_M9SD"
_unit addMagazine "15Rnd_9x19_M9SD"
_unit addMagazine "15Rnd_9x19_M9SD"
_unit addWeapon "M9SD"
_unit addMagazine "PipeBomb"
_unit addMagazine "PipeBomb"
_unit addMagazine "PipeBomb"
_unit addWeapon "NVGoggles"

Exit

Init.sqf
execVM "briefing.sqf";

But i dont think theres a problem because it works in singleplayer (editor). Ill try that event handler as well, thanks.