IPB


Welcome Guest ( Log In | Register )

 Forum Rules Forum Rules
 
Reply to this topicStart new topic
> Increased knowledge about the possibilities of Map buildings., Dedicate section for anyone who wants to make its mission more saturat
Dollor
post Aug 25 2011, 11:19
Post #1


New Member
*

Group: Members
Posts: 4
Joined: 20-August 11
From: The Russian City Of Yekaterinburg.
Member No.: 9,180



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. thumbsup.gif

This post has been edited by Dollor: Sep 10 2011, 11:56
 
Quote Post

Fast ReplyReply to this topicStart new topic
3 User(s) are reading this topic (3 Guests and 0 Anonymous Users)
0 Members:

 



Lo-Fi Version Time is now: 20th January 2018 - 09:19