Page 1 of 1
Axis Only Trigger?
Posted: Thu Aug 07, 2003 1:35 am
by sirkilroy
I am working on a map that will have two Stuka come by and bomb two set points on the map.
I want the AXIS to call these Planes by using the Radio (push_trigger)
I have it working BUT all players can use the trigger
How do I set it so ONLY THE AXIS can set the trigger?
thanks
-=|TFO|=- Kilroy
Posted: Thu Aug 07, 2003 1:55 am
by Bjarne BZR
Code: Select all
axis_objective:
// parm.other is the triggerer
if(parm.other.dmteam == axis) {
iprintlnbold_noloc "The axis have won!"
teamwin axis
}
end
And set up the trigger to call the axis_objective thread...
Posted: Thu Aug 07, 2003 2:18 am
by sirkilroy
thanks, But another question
Can I still use that if it is NOT the Objective?
Allies have the Objective to set, I just wanted the AXIS the be able to call in the planes for support.
Posted: Thu Aug 07, 2003 2:31 am
by Alcoholic
that was an example. remove the teamwin axis part and add whatever you want to happen there.
Posted: Thu Aug 07, 2003 2:33 am
by Bjarne BZR
The basic answer is that you use the if statement to check for the correct condition. For more on scripting language features, check out the MOHAA scripting language tutorial:
http://www.planetmedalofhonor.com/rjuka ... guage.html