You could Easily mix up Trigger 1 and 3 to save execution time. As the two triggers are using the same events and conditions + trigger 3 uses an IF condition.
I simply want to return a region so that a region may be selected depending on the triggering player. Anytime I try to return a region the compiler tells me that it needs to return a value... Please help me... In simple words I want to convert a Region into a valuable value that could be used in my code...
Edit :Current code
region gf_AssociateplayersspawnswithRegions () {
// Implementation
if ((EventPlayer() == 1)) {
return RegionFromId(24);
}
else {
}
}
Thanks a lot:P It is working fine. I had found the Number of living unit trigger, but I didn't know I could change the unit group to a unit quantity in a region! Thanks a lot again! Now I can continue my map!
I simply want to make a trigger which will detect the quantity of a specific unit in a specific region, but can't seem to find anything about such triggers...
For example, if you bring X marines at location Y it does Z actions.
Please help me:P I want my map done before the game comes out! :)
0
@PatchOne:
You could Easily mix up Trigger 1 and 3 to save execution time. As the two triggers are using the same events and conditions + trigger 3 uses an IF condition.
0
@EphemeralNight:
Thanks a lot EphemeralNight. It works pretty fine. I even tested it on the most unusual Conditions and it worked fine! Thanks Again!
0
I simply want to return a region so that a region may be selected depending on the triggering player. Anytime I try to return a region the compiler tells me that it needs to return a value... Please help me... In simple words I want to convert a Region into a valuable value that could be used in my code...
Edit :Current code
region gf_AssociateplayersspawnswithRegions () {
// Implementation
if ((EventPlayer() == 1)) {
return RegionFromId(24);
}
else {
}
}
error : Expected a return value
0
Thanks a lot:P It is working fine. I had found the Number of living unit trigger, but I didn't know I could change the unit group to a unit quantity in a region! Thanks a lot again! Now I can continue my map!
0
I simply want to make a trigger which will detect the quantity of a specific unit in a specific region, but can't seem to find anything about such triggers...
For example, if you bring X marines at location Y it does Z actions.
Please help me:P I want my map done before the game comes out! :)
Nice website BTW