Posted by: Dollor Aug 25 2011, 11:19
The folder where you want to place files listed below.
C:\Users\NameAccountDocuments\ArmAOtherProfiles\NameProfiles Arma\MPMissions\Name mission
Here is an example of a bind token to the unit.
Fits into the trigger.
CODE
- Size: 0/0
- Activator: None/Present/Repeating
- Condition: format[“%?1”,Trg1]!=”false”
- On Act: “markername” setmarkerpos getpos unitname; \\ You add another \\ “markername” setmarkerpos getpos unitname; trg1=false
- On dea: Trg1=true
Without ? After %.
---------------------------------
Example player actions (actions pane).
Creating file extensions SqS. Let's call it "Action" in the type the following code
CODE
_unit = _this select 0
?!(player == _unit): exit
#Start
_Name = _Unit addAction ["NameActoin", "Name.sqs"]
\\------------
~30
unitname removeAction _Name
Goto "Start"
#exit
\\------------------
Exit
Then do a file in the format of the sqs. under the name "Name", you are making code
CODE
Private ["_gen", "_caller", "_id"];
_gen = _this select 0;
_caller = _this select 1;
_id = _this select 2;
\\------------------------------------------------------
Your code.
\\-------------------------------------------------------
\\ Following the execution of the activity will be deleted.
_gen removeaction _id
Exit
Then the editor create a unit type in Arma initializing [] exec "Name.sqs" -you can [unitname]
You should get 2 files: Action.sqs, Name.sqs.
-----------------------------------------------
Installation of any object.
Create a file format of the SqS. NAME "object1".
CODE
#start
_unit = _this select 0
? (unitname == Player) : Goto "erect"
? (unitname == player) : Goto "exit"
?!(unitname == Player) : exit
#erect
NameOfObject = TRUE
publicVariable "NameOfObject"
_dir = getDir unitname
Name setDir _dir
Name setpos getpos unitname
Name setDammage 0
exit
#exit
Then use the:
CODE
_Name = _Unit addAction ["NameActoin", "object1.sqs"]
I would be happy to if this helped.