Axis Only Trigger?

Post your scripting questions / solutions here

Moderator: Moderators

Post Reply
sirkilroy
Lance Corporal
Posts: 22
Joined: Thu Feb 13, 2003 11:55 pm
Location: Indy
Contact:

Axis Only Trigger?

Post 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
Bjarne BZR
Site Admin
Posts: 3298
Joined: Wed Feb 05, 2003 2:04 pm
Location: Sweden
Contact:

Post 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...
Admin .MAP Forums
Image
Head above heels.
sirkilroy
Lance Corporal
Posts: 22
Joined: Thu Feb 13, 2003 11:55 pm
Location: Indy
Contact:

Post 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.
User avatar
Alcoholic
General
Posts: 1470
Joined: Sat May 17, 2003 5:57 am
Location: California
Contact:

Post by Alcoholic »

that was an example. remove the teamwin axis part and add whatever you want to happen there.
Bjarne BZR
Site Admin
Posts: 3298
Joined: Wed Feb 05, 2003 2:04 pm
Location: Sweden
Contact:

Post 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
Admin .MAP Forums
Image
Head above heels.
Post Reply