@bcuppy go to the activation drop down menu and choose End. There are multiple "ends" (ie. End#1, End#2 etc.) so you can make multiple possible end states to your mission. As the video also shows, you can type ForceEnd; in the On Act. field of a trigger as well.
Uh, I'm trying to make a script where a bunch of OPFOR units will move to a certain place once an Independent unit is present... I've tried synching the trigger to the waypoints for the OPFOR vehicles, and setting the trigger to "independent present", am I doing something wrong?
you have to make a move waypoint first right infront of your opfor vehicles. Then you make the next one where you want it to be. Since the first waypoint to your trigger, which should be siezed by independent
for example: Airforce doing a different task and the infantry doing different task, the airforce cant see the infantry task/objective and same for the infantry
@fingerniklas Just assign different waypoints to your guys. So say your a rifleman, assign a move waypoint to wherever then an air unit e.g. A10 to another place. Message me if you wan't more explanation :)
@DomDiddyDomable thats just a move order. What i was talking about is different Objectives. The tasks you have in the singleplayer, sometimes there are other AI units that have a different objective to do wile you do another
@fingerniklas Sorry, and excuse me if im not getting you cos im not in to the whole scripting stuff it goes right over my head haha. But Im just guessing that instead of 'move' it could be destroy? So the A10s destroy a tank platoon then the player destroys a fuel depot. Or holds a certain area for 5 minutes. Just a guess though
@eclipse245 hey what if you named your task tsk1 and another task tsk2 and all i want to have happen tsk1 be suceeded when BLU-FOR secures a church! i need help! please!
no offense, but i recommend writing down what you plan on saying before hand, it took a few views to follow what you were saying because of the delays in your speech, again no offense intended, good tutorial once i figured out what you were saying, just a reccomendation
Ok, I now have a problem, I've followed your steps but when i try it and I finish objective there's an error with the variables (now this is Op flashpoint GOTY but i've also got a website with ALL the commands) I don't know what I'm doing wrong i'm putting in the code you give me and it's the same code for opflash but it's not working and keeps crashing.. help please?
@elsifili You should put in condition "!alive radar1 and !alive radar2" Presuming the radars are named radar 1 and radar 2. YES the "and" should be there or it won't work
@slipcurve That's correct. But order isn't too important in this case. You can make it = true after or before defining the publicVariable. And yes the Syntax is essentially C++
I'm trying to add a trigger to my mission where too many civilian casualties will result in a failure. Do you know how to do this? I'm using Operation Arrowhead but I Imagine it's the same as arma2. I have almost every enemy and civilian unit on lower than 100% probability so I can't know for sure how many there are.
@eclipse245 WTF! You haven't the faintest idea of what you're doing. publicVariable doesn't define variables. It simply broadcasts the current value of the specified variable to all clients, and the server. And SQF i nothing like c++ syntax. It has similarities, sure, but it's far from c++ syntax.
@MulleDK13 At least he is helping others if you think you know so much better than everyone else why don't you make a tutorial rather that making videos of you acting like a tard in other peoples level creations?
Also it is very close to C++ ( no one claimed it was exactly like it); and everyone how knows c++ picks up the scripting in this game very quickly.
Don't be such a dick, people hate 21 year old know it alls like you, especially when you are clearly wrong.
hey i'd like to ask you something for objectives that i'm going to use and i hope you can help me.
i'm making a map where you can activate attack waves with radio's and i'd like to know how do you make a objective to destroy the complete wave of 4 cars (2 trucks and 2 machine gunned cars) and 18 other men that are being transported in the 2 trucks. i hope you can help me with this.
@eclipse245 this really worked but now i'm kinda stuck with my next thing.
i want that when everyone is dead there will be a helicopter coming to pick you up but i don't know how and i also don't know how to make an objective to enter a helicopter.
Your voice sonds of death and swine flu, I just cant listen to it and you hardly explained what the hell was going on. You just typed in random shit at the speed of light and said what was about to happen.
How do you make triggers that can fire multiple times ( e.g. saveGame) when each task is done. I set the trigger to REPEATEDLY but it still only fires once. I guess once the trigger is fired, its stays to a true state and doesn't revert to false. In the condition field I have an OR condition for objectives (set by other triggers) which works, but only the one time. How do I reset the trigger if REPEATEDLY doesn't do that automatically?
Hi Peter, i have a noobish question. If the tunguska is in a group, consistiong of i.e six units. How can i make a "Tunguska is down" message when ALL of them are down? I dont want six messages, i want one. Thanks =)
And btw, i love your videos, keep up the great work! =D
@InzaneNOR you would have to give a name to every unit. Then in the condition field you put: !alive unit1 && !alive unit2 && !alive unit3 && !alive tung1;
I did try that, which don't work. So I did search youtube for another vid with another script. I found one that did work. you have to write it like: ((!Alive unit1) AND (!alive unit2) AND (!alive unit3))
Would it not be better to hard code the objectives within the missions pbo file? This way all the objectives are predefined, and all you have to do is have the triggers call them since they they will be set when the mission is loaded.
what if i wan to end the objective only when lets say 2 tanks are destroyed, i placed !alive tank1 && tank2; into condition, but when i destory both tanks i wont complete the objective
Probably a bit late for a reply (1 Month lol) but if you still need an answer you need to put in condition "!alive tank1 && !alive tank2;". !alive needs to go before all unit names in the condition.
How can i make it so after Obj_1 is completed a helicopter will go to a certain point and wait for my guys then extract them we=hen they are in te heli. I know how to make the extraction, just need to know how to do that...
@coolflash71 Give your vehicle a name, for example vehicle1. Now select a unit you want in the car, and type the following in the Initialization bar: this moveInCargo vehicle1;
You will have to do that for every single man you want inside the vehicle. Have fun!
Definitely going to get Op Arrowhead. I don't play ArmA, until that expansion comes out. It will make ArmA so much better and with all the proper systems such a FLIR. =D
okay so Im trying to make and Objective to be to take out a Guard post. Essentially, to complete the obj u have to take out three men, who are not grouped.
I used the code !alive soldier1 && soldier2 && soldier 3 as the condition, but it wont work.
It does however work if I use the condition !alive soldier1
Any ideas on how to fix this? Dont want to group them cos that will mean more code to make them stay still
Ummm. I don't remember what you have to do if it's a static building. But if it's one of the building from the "Units" tab. You just give it a a name and use the same code as with the tung1.
I'd just want to know if there is a shortcut you can take, if you have say, 100 enemy troops on the map, and you want the map to end once they're all destroyed. Do I then have to do it this way? Or is there a simple command that just involves everyone on the opposing side.
Completed my first 'proper' SP mission with the aid of this tutorial. You kill all enemies in a town then get extracted by chopper using the radio to call it. :D
I can note though that I used ArmA (1) you use this code (I had just one objective; don't know if you need extra code when you have two, other than the 'setCurrentTask' code):
I can't wait for your module tutorial mate. I can't seem to get the ambient combat module to work. I'm lucky if it spawns 1 russian jet after about 5 mins :(
This is very helpfull but. . if u could may you show us that are noobs to the editor how to setup an objective such as capturing a town, flag or outpost or area! Keep up the great work ur tutorials are helping alot!
hey man we have subscribed for you for a reason... more arma 2 tutorials!!
dragonfire970 2 weeks ago
How do u assign for example killings someone as a task?
iitsThomasss 3 weeks ago
I subbed; your videos are easy to follow and informative.
Keep it up ;)
jaydotosh 1 month ago
can you put up a video on radios and how to make conversations please.
armaplayer432 2 months ago
how do you end a mission?
bcuppy 2 months ago
@bcuppy go to the activation drop down menu and choose End. There are multiple "ends" (ie. End#1, End#2 etc.) so you can make multiple possible end states to your mission. As the video also shows, you can type ForceEnd; in the On Act. field of a trigger as well.
javakris 2 months ago
Uh, I'm trying to make a script where a bunch of OPFOR units will move to a certain place once an Independent unit is present... I've tried synching the trigger to the waypoints for the OPFOR vehicles, and setting the trigger to "independent present", am I doing something wrong?
TheSqueezedLemon 2 months ago
@TheSqueezedLemon
you have to make a move waypoint first right infront of your opfor vehicles. Then you make the next one where you want it to be. Since the first waypoint to your trigger, which should be siezed by independent
SaintsSpecOps 2 months ago
How do i make tasks for different players,
for example: Airforce doing a different task and the infantry doing different task, the airforce cant see the infantry task/objective and same for the infantry
fingerniklas 6 months ago
@fingerniklas You'd script it separately, I believe.
CrazyBrickFilms 5 months ago in playlist ArmA 2 Editor Tutorials
@fingerniklas Just assign different waypoints to your guys. So say your a rifleman, assign a move waypoint to wherever then an air unit e.g. A10 to another place. Message me if you wan't more explanation :)
DomDiddyDomable 3 months ago
@DomDiddyDomable thats just a move order. What i was talking about is different Objectives. The tasks you have in the singleplayer, sometimes there are other AI units that have a different objective to do wile you do another
fingerniklas 3 months ago
@fingerniklas Sorry, and excuse me if im not getting you cos im not in to the whole scripting stuff it goes right over my head haha. But Im just guessing that instead of 'move' it could be destroy? So the A10s destroy a tank platoon then the player destroys a fuel depot. Or holds a certain area for 5 minutes. Just a guess though
DomDiddyDomable 3 months ago
yo can u tell me how to make auto save trigger cust my team is confused to make it
TheGamergood 7 months ago
can i also hide vehicles ? not lock them I mean can i do a free "H" on the ground and once the enemy vehicle is destroyed it will magically appear?
killerrj8 7 months ago
can i also call groups like group1 ? cause i dont want to name everyone to unlock or something
killerrj8 7 months ago
@killerrj8 With scripting you can make groups be classified as single entities yes. Not within the editor though.
eclipse245 7 months ago
@eclipse245 hey what if you named your task tsk1 and another task tsk2 and all i want to have happen tsk1 be suceeded when BLU-FOR secures a church! i need help! please!
ThePresD 1 week ago
Does anyone know how do I make a trigger that executes when someone boards a vehicle?
zaczes999 7 months ago
no offense, but i recommend writing down what you plan on saying before hand, it took a few views to follow what you were saying because of the delays in your speech, again no offense intended, good tutorial once i figured out what you were saying, just a reccomendation
Jawz4devils 7 months ago
I keep getting "Missing ;" what the fuck does that mean!? AAARGH
Blodogaere 7 months ago
@Blodogaere you have to put a ; behind a order - when you name something you cant use space thats the problem i think you have to use_ or-
girlonwork 3 months ago
questiion what if i just want the objective to be just that somwone wuld go somwere?
megaricardas 8 months ago
IS there something in game I have to place to show Notes
AlexB4455 8 months ago
Ok, I now have a problem, I've followed your steps but when i try it and I finish objective there's an error with the variables (now this is Op flashpoint GOTY but i've also got a website with ALL the commands) I don't know what I'm doing wrong i'm putting in the code you give me and it's the same code for opflash but it's not working and keeps crashing.. help please?
Arran961 9 months ago
YOU ARE MY SAVOIR! :D
Arran961 9 months ago
HELP! why this doesnt work if the objectives are more than 1?
i want to make to destroy 2 radars to complete objective 1
but i can make a objective for only 1 radar...
elsifili 10 months ago
@elsifili You should put in condition "!alive radar1 and !alive radar2" Presuming the radars are named radar 1 and radar 2. YES the "and" should be there or it won't work
ArranS96 8 months ago
@elsifili If "and" doesn't work try "&&"
ArranS96 8 months ago
How do u make certain units disapear?
DeranJon 1 year ago
im confused with this video i cant learn :(
echo2436 1 year ago
hey do you know how to make a nuke ?
AlexB4455 1 year ago
@AlexB4455 armaholic has one.
eclipse245 1 year ago
6:05 weird how the declaration of a variable comes after you've set a value in it! Is that correct?
The syntax looks very much like c++, I'm feeling right at home.
slipcurve 1 year ago
@slipcurve That's correct. But order isn't too important in this case. You can make it = true after or before defining the publicVariable. And yes the Syntax is essentially C++
eclipse245 1 year ago
@eclipse245
I'm trying to add a trigger to my mission where too many civilian casualties will result in a failure. Do you know how to do this? I'm using Operation Arrowhead but I Imagine it's the same as arma2. I have almost every enemy and civilian unit on lower than 100% probability so I can't know for sure how many there are.
Thanks for the helpful video.
slipcurve 1 year ago
@eclipse245 WTF! You haven't the faintest idea of what you're doing. publicVariable doesn't define variables. It simply broadcasts the current value of the specified variable to all clients, and the server. And SQF i nothing like c++ syntax. It has similarities, sure, but it's far from c++ syntax.
MulleDK13 1 year ago
@MulleDK13 Just to clarify: obj = true; defines the variable.
MulleDK13 1 year ago
@MulleDK13 affirmative. You're basically declaring that on this trigger the variable "obj" becomes active.
eclipse245 1 year ago
@MulleDK13 At least he is helping others if you think you know so much better than everyone else why don't you make a tutorial rather that making videos of you acting like a tard in other peoples level creations?
Also it is very close to C++ ( no one claimed it was exactly like it); and everyone how knows c++ picks up the scripting in this game very quickly.
Don't be such a dick, people hate 21 year old know it alls like you, especially when you are clearly wrong.
pranays 10 months ago
@pranays lol, you're a perfect example of a n00b.
It is NOT close to c++. Like I said, it has similarities in the syntax, but it's neither comparable nor close to.
MulleDK13 10 months ago
What do you do when you whant to have something saying on the objective? and you'r vids helpt me allot thx!
135TheAndrew 1 year ago
hey i'd like to ask you something for objectives that i'm going to use and i hope you can help me.
i'm making a map where you can activate attack waves with radio's and i'd like to know how do you make a objective to destroy the complete wave of 4 cars (2 trucks and 2 machine gunned cars) and 18 other men that are being transported in the 2 trucks. i hope you can help me with this.
thanks
supfreak2020 1 year ago
@supfreak2020 You would need the mission to check whether or not all those are dead. Give every unit a name and then !alive unit1 etc. etc.
eclipse245 1 year ago
@eclipse245 ok thanks
supfreak2020 1 year ago
@eclipse245 this really worked but now i'm kinda stuck with my next thing.
i want that when everyone is dead there will be a helicopter coming to pick you up but i don't know how and i also don't know how to make an objective to enter a helicopter.
supfreak2020 1 year ago
Your voice sonds of death and swine flu, I just cant listen to it and you hardly explained what the hell was going on. You just typed in random shit at the speed of light and said what was about to happen.
mylesbradley1234 1 year ago
@mylesbradley1234
haha, nice post. listen to youself:
"you hardly explained what the hell was going on"
Why should he do that when, as you said youself
"said what was about to happen" ? Just wondering...
NeoNdk06 1 year ago
This has been flagged as spam show
Hey eclipse is there a save game trigger?How do i make it
grillob3 1 year ago
Hey eclipse is there a save game trigger?How do i make it?
grillob3 1 year ago
How do you make triggers that can fire multiple times ( e.g. saveGame) when each task is done. I set the trigger to REPEATEDLY but it still only fires once. I guess once the trigger is fired, its stays to a true state and doesn't revert to false. In the condition field I have an OR condition for objectives (set by other triggers) which works, but only the one time. How do I reset the trigger if REPEATEDLY doesn't do that automatically?
Jeorney 1 year ago
How do you use the !Example when what your trying to set as an objective is an object rather then something thats alive?
predhunter 1 year ago
Hi Peter, i have a noobish question. If the tunguska is in a group, consistiong of i.e six units. How can i make a "Tunguska is down" message when ALL of them are down? I dont want six messages, i want one. Thanks =)
And btw, i love your videos, keep up the great work! =D
InzaneNOR 1 year ago
@InzaneNOR you would have to give a name to every unit. Then in the condition field you put: !alive unit1 && !alive unit2 && !alive unit3 && !alive tung1;
That should work
eclipse245 1 year ago
@eclipse245 Ty
InzaneNOR 1 year ago
@eclipse245:
I did try that, which don't work. So I did search youtube for another vid with another script. I found one that did work. you have to write it like: ((!Alive unit1) AND (!alive unit2) AND (!alive unit3))
NeoNdk06 1 year ago
Comment removed
NeoNdk06 1 year ago
5:03 Woh, What the P
GameraFiction 1 year ago
How do you make an objective appear after a previous objective has been completed?
legandarymasterrevan 1 year ago
Would it not be better to hard code the objectives within the missions pbo file? This way all the objectives are predefined, and all you have to do is have the triggers call them since they they will be set when the mission is loaded.
or is this the easy mode method?
mercnet1980 1 year ago
@mercnet1980 Well. First of all, if you edit a pbo, then that's not really hardcoding :P But yea, this is the easy mode.
eclipse245 1 year ago
Yeah right, you're not 30 years old like you claim in your profile....more like 16
zonexll 1 year ago
@zonexll AHA, yea obviously :P 17
eclipse245 1 year ago
what if i wan to end the objective only when lets say 2 tanks are destroyed, i placed !alive tank1 && tank2; into condition, but when i destory both tanks i wont complete the objective
EdgarEmigholz 1 year ago
@EdgarEmigholz
Probably a bit late for a reply (1 Month lol) but if you still need an answer you need to put in condition "!alive tank1 && !alive tank2;". !alive needs to go before all unit names in the condition.
PvtHudson98 1 year ago
how do u mark and objective's location on the map? and when it is complete how do u make it show the objective as complete?
fndjfgsdk 1 year ago
Hey great vids.. helped me alot.
Can you tell me one thing though?
How can i make it so after Obj_1 is completed a helicopter will go to a certain point and wait for my guys then extract them we=hen they are in te heli. I know how to make the extraction, just need to know how to do that...
iiDavies 1 year ago
@iiDavies I believe you should synchronize that trigger with the chopper waypoint.
PtePayrits 1 year ago
where did you download the DBO_afghanistan? armaholic maybe?
100lithuanian 2 years ago
This comment has received too many negative votes show
God. You really need to edit your videos. "I dont even know what tutorial this is" Makes you sound really lousy.
runegobigred5 2 years ago
hey nice vid but i have a question im new to arma 2 so i want to know how to spawn a soldier or soldiers in a vehicle in the editor
coolflash71 2 years ago
this moveincargo namehere,
make a humvee for example and call it hum and then in the init field of the soldiers type this moveincargo hum;
boysinblue3 2 years ago
@coolflash71
1. Make soldier
2. Make car
3. Group soldier with car
4. Set soldier to "In Cargo"
xXFr0gXx 2 years ago
@coolflash71 Give your vehicle a name, for example vehicle1. Now select a unit you want in the car, and type the following in the Initialization bar: this moveInCargo vehicle1;
You will have to do that for every single man you want inside the vehicle. Have fun!
PtePayrits 1 year ago
Thanks for the tutorials! Maybe in time, my missions will get on a Sunday TG event. ;)
ExadusX 2 years ago
um what is your servers IP i would love to try some of your missions
TennpennyKid 2 years ago
Join Tactical Gamer. That's the only way you'll be able to join the server anyway.
eclipse245 2 years ago
hey can i ask u if u are gonna get arma 2 op arrow head and were did u get the island dbo_Afghanistan
Tamatoy 2 years ago
Definitely going to get Op Arrowhead. I don't play ArmA, until that expansion comes out. It will make ArmA so much better and with all the proper systems such a FLIR. =D
Armaholic.
eclipse245 2 years ago
@eclipse245 FLIR and lasers ^^ w00t
jsimmsinokc 2 years ago
i checked it
thank u man great
sadeedemad 2 years ago
thank you
is there a code were i tell the system when all the enemy unites die then end mission?
please help
sadeedemad 2 years ago
watch Trigger tutorials.
eclipse245 2 years ago
Comment removed
Kgeezer 2 years ago
this code doesent make much sense
cdogwoof 2 years ago
what code?
eclipse245 2 years ago
I have a question;
Assuming I want to change the tasks, on the condition of a certain event how would I do it?
For example;
!(alive car) = New mission tasks.
sovietxvi 2 years ago
Condition: !alive car;
On Act: The code that's in this tutorial.
eclipse245 2 years ago
Where can i download some SP missions theres really very few going around (armaholic). Are they discussed and distributed in some forum?
niggajayjay1 2 years ago
what do you mean? Armaholic has like 5 SP missions on the main page right now. Not to mention how many they have in the Download database :P
eclipse245 2 years ago
where are the 5? I must be missing something
niggajayjay1 2 years ago
there's 2 on main page. Go through their database. They have like over 40 SP missions.
eclipse245 2 years ago
okay so Im trying to make and Objective to be to take out a Guard post. Essentially, to complete the obj u have to take out three men, who are not grouped.
I used the code !alive soldier1 && soldier2 && soldier 3 as the condition, but it wont work.
It does however work if I use the condition !alive soldier1
Any ideas on how to fix this? Dont want to group them cos that will mean more code to make them stay still
sovietxvi 2 years ago
!alive soldier1 && !alive soldier2 && !alive soldier 3
There you go :P
eclipse245 2 years ago
You could probably also try
!alive(soldier1 && soldier2 && soldier 3)
But I'm not sure if that would work. Just seems like it would from a programmers standpoint.
teheee 2 years ago
how do you make is so you have to blow up a certain building to win
cdogwoof 2 years ago
Ummm. I don't remember what you have to do if it's a static building. But if it's one of the building from the "Units" tab. You just give it a a name and use the same code as with the tung1.
eclipse245 2 years ago
I'd just want to know if there is a shortcut you can take, if you have say, 100 enemy troops on the map, and you want the map to end once they're all destroyed. Do I then have to do it this way? Or is there a simple command that just involves everyone on the opposing side.
skrewster 2 years ago
Make a trigger and place it in the middle of the map. Make axis A and axis B like 15000
Then Just set Activation to "OPFOR" and click on "NOT PRESENT" then in Condition put: this and in On Act put: ForceEnd;
eclipse245 2 years ago
Thanks a bunch mister!
skrewster 2 years ago
no problem.
eclipse245 2 years ago
Oh... one thing though... the code that tells the briefing that the objective is completed brings up coding errors when I try it in ArmA(1)...
CoDCopsProductions 2 years ago
Thanks mate!
Completed my first 'proper' SP mission with the aid of this tutorial. You kill all enemies in a town then get extracted by chopper using the radio to call it. :D
I can note though that I used ArmA (1) you use this code (I had just one objective; don't know if you need extra code when you have two, other than the 'setCurrentTask' code):
"1" objStatus "DONE"
in the On Act. field of the trigger.
Once again, thanks a lot mate :D
CoDCopsProductions 2 years ago
I can't wait for your module tutorial mate. I can't seem to get the ambient combat module to work. I'm lucky if it spawns 1 russian jet after about 5 mins :(
29Gixxer 2 years ago
I get your result with ambient combat. So I'll look into it before I do the tutorial. Tutorial might come next week ;)
eclipse245 2 years ago
This is very helpfull but. . if u could may you show us that are noobs to the editor how to setup an objective such as capturing a town, flag or outpost or area! Keep up the great work ur tutorials are helping alot!
tankus910 2 years ago