Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
You could also make a variable e.g. called "captureScore = 0" and when a trigger fires it increases that value with "captureScore = captureScore + 1". Place another trigger that fires when that variable reaches a certain score which ends the mission.
i think setting a global variable would be a better way too! so in mission init do something like: CaptureScore = 0
in each trigger i can add
CaptureScore = CaptureScore + 1
this is where i struggle with if and loop syntax.
in my head its something like
" if ( mycapturescore >= 25 ) then ( "end1" call BIS_fnc_endMission; ) else (re run this line in 60 or 120 secs) "
i cant seem to get my head around these statements in arma.
i could do with a basic example. if you wouldnt mind helping me understand. everything i've tried using If's i never get to work.
CaptureScore = if (CaptureScore >= 25) then {"end1" call BIS_fnc_endMission; };
this is what im coming up with basically. from reading the bis site.
2. write
3. create a new trigger with activation/type to none. place it too somewhere where you want. In that one in the condition field you write
4. in the same trigger, write
-----------------------
For clarifying:
The variable before the if statements are optional, they are not used to "bound" the if statement to a variable but to be able to use the return value of the code (which is not needed). What you did there was acutally even worse: you overwrote the counter variable with the if statement which would render it useless then.
Thanks a bunch! i already added to my init.sqf. i dont know why i even called the variable, but i think we're i was going wrong was also expecting the if statement to have to loop. again if its in a trigger that wouldnt be needed..
again thanks for the advice and a great explanation! should have it working