Jump to content
Sign in to follow this  
BradJump

Script Installation

Recommended Posts

Hi I apologize in advance if this post is already somewhere else but I could not find one. I am VERY new to editing and downloaded my first script but now I do not know what to do with it. Do I place the script file in addons? It also came with a mission.sqm like if i had saved a mission from editor, where do I place that? Any help would be much appreciated, Thanks!

Share this post


Link to post
Share on other sites

hi

1) copy the script (probably sqf file format) into your "missionname" folder.

2) next thing would be telling arma what to do with it.

What kind of script is it?

Is your mission for SP or MP?

You can, depending on your script, run it via the init.sqf or via a trigger for instance. If you don't have an init, create one (open notepad, save it as init.sqf in your "missionname" folder).

Example:

Write this in your init.sqf

Server execVM "scriptname.sqf";

For a trigger

if (triggeractivated triggername) then {execVM "scriptname.sqf"};

Edited by Noricum

Share this post


Link to post
Share on other sites

If your using a mission in a specific user you must go to Arma2 other profiles then go to MPMissions and yeah just paste the scripts in there and modify them if the file directories are different.

Share this post


Link to post
Share on other sites

Gees that was detailed and specific :j: you got me lost.

Depending on the script you want to install, a basics script for example like the Universal Weapons Respawn Script seen below

http://www.armaholic.com/page.php?id=1554&highlight=UNIVERSAL+WEAPONS+RESPAWN+SCRIPT

(yes it says its for Arma but it works in arma2 and oa as well)

using this script as an example, all you need to do is:

1. Download the script

2.place the script into your missions folder which can be located here:

if mission is for sp mission

C:\Documents and Settings\username\My Documents\ArmA 2\missions

if Mp mission

C:\Documents and Settings\username\My Documents\ArmA 2\mpmissions

3. some script have more files but thats why you need to read the instructions (readme) included, but for this

particular script which is for mp, put the script int he mission folder then go ingame.

4. Once ingame take the code posted o the download page:

["joebloggs",0] exec "weapons_respawn.sqs"

and paste it into the activation line of the soldier you want to respawn the weapons with.

5. you will need to name the character of the unit you wish to respawn with the weapons,

so for example, I will name my guy w1

6. In the code it will look like this now:

["w1",0] exec "weapons_respawn.sqs"

======================================

If you open the script itself up, I will post the first lines of code:

;Universal Weapons Respawn Script v1.04 (March 31, 2003) revised (February 1, 2007)
;Required Version: ArmA
;original by toadlife revised by norrin for ArmA
;toadlife@toadlife.net
;intialize like this: [b]["unitname",0] exec "weapons_respawn.sqs"[/b]
;            Or this: [b]["unitname",1] exec "weapons_respawn.sqs"[/b]
;
; * [b]"unitname"[/b] = The name of the player the script runs on (must be enclosed by quotes!)
; * 0/1 = method of repleneshing weapons
;  **[b]if method is 0[/b], the player gets the same weapons he started out with every time
;  **[b]if method is 1[/b], the player gets the same weapons he had when he died
;
; [b]Advanced example method of initializing script[/b] - put the following lines in your init.sqs,
; and replce the unit names with your own:
;_units = ["w1","w2","w3","w4","w5","w6","w7","w8","w9","w10","w11","w12","w13","w14","w15","w16","w17","w18"]
;{[_x,0] exec "weapons_respawn.sqs"} foreach _units
;
;

In the above code, I had bolded whats inmportant, the script itself is almost self explanatory,

gives you a couple of options.

Again this is just an example I'm using to give you the idea on how to install scripts, they all vary from script to

script on how to install, but the general premise is the same they will all go into your missions folder,

unless otherwise noted.

Quick review:

1. put script into mission folde3r be it sp, or mp

2. read instructions on script in terms of code, as you need to active,

or call the script ingame somehow.

A very handy tool to open scripts with is called Armaedit:

http://www.armaholic.com/page.php?id=1455&highlight=ARMAEDIT

This will allow you to open and create new scripts if you wish.

Hope that helps.

Btw what script are you looking to install?

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×