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
Axis Only Trigger?
Moderator: Moderators
-
Bjarne BZR
- Site Admin
- Posts: 3298
- Joined: Wed Feb 05, 2003 2:04 pm
- Location: Sweden
- Contact:
Code: Select all
axis_objective:
// parm.other is the triggerer
if(parm.other.dmteam == axis) {
iprintlnbold_noloc "The axis have won!"
teamwin axis
}
end
-
Bjarne BZR
- Site Admin
- Posts: 3298
- Joined: Wed Feb 05, 2003 2:04 pm
- Location: Sweden
- Contact:
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
