Forum Jump :

Author Message


Posts: 17
Rank:


Level: Member

Country: es
Location: Tenerife
Occupation: Torres84
Age: 36
In-game name: [SP]Torres

 
#1 Posted at 2010-11-09 16:34        
     
Hi everybody !! sorry 4 this question seems its looks like a n00b question but I used to script and edit on OFP but right now Im using vanilla ArmA II with some mods and IM LOST !! hahaha I havent found any easy-to-follow guide since Im spanish and we lack any community who gives any support.

My question is... as far as I know, scripts must be linked to the mission via an txt called "missioname.sqs or .sqf" but I dont know where do I have to put it, neither I know if I can put the script inside the mission editor!

this is the script I want to use since I have 2 new friends who have just bought the game and they are not familiar with it, so Im creating a simple mission with respawn and lots of weapons and equipment for them to test (http://www.armaholic.com/page.php?id=1537)

How do I implement this script?? thank you in advance aaaanddd sorry if this post doesnt belong here or something :/


Modedit
Title changed, the title should reflect the subject of your question, not that you have a question.
Also, please don't use this "l33t" typing. Its not allowed and i never can be bothered to read posts containing such and it could be deleted/locked before you say "Hi, and welcome to Armaholic.
:-)

This post was edited by Foxhound (2010-11-09 16:39, ago)


Author Message


Posts: 151
Rank:


Level: Muted

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

 
#2 Posted at 2010-11-09 21:58        
     
#start
@ (! alive player)
_weapons = weapons player
_magazines = magazines player

@ (alive player)
removeallweapons player

{player addMagazine _x} foreach _magazines
{player addWeapon _x} foreach _weapons
goto "start"
Open notepad and paste this into it. Save it as "Save_gear_when_respawned.sqf"
and then copy it to your mission folder.
player execVM "Save_gear_when_respawned.sqf"
This is the command to execute the script which will go in the init field for each player.


Advertisement


Author Message


Posts: 17
Rank:


Level: Member

Country: es
Location: Tenerife
Occupation: Torres84
Age: 36
In-game name: [SP]Torres

 
#3 Posted at 2010-11-12 04:04        
     
well thank you very much : ) I'm using it to tweak an already made mission.

Sorry Mod