OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting Multiplayer => Topic started by: Fiendish on 03 Jan 2003, 17:50:04

Title: Addaction does not work.
Post by: Fiendish on 03 Jan 2003, 17:50:04
I can't get the addaction to work.
Can you help me out?
An if I will get it to work, will that action be available for all players on the server? :-\
Title: Re:Addaction does not work.
Post by: Fiendish on 03 Jan 2003, 17:58:43
I forgot to tell you what I want to do.
I want to have the flyinheight command in the radio list.
Title: Re:Addaction does not work.
Post by: Ranger on 03 Jan 2003, 18:43:38
What you want is a radio call, not an action.  That's why addAction isn't working for you.

Radio calls are done with triggers.  In the condition portion, one of the items is a drop-down menu, from which you may select Radio Alpha, Radio Bravo, Radio Charlie, and so on.  Choose one of those.  Put the flyInHeight command in the trigger's On Activation field.

When you test the mission, by making the appropriate radio call, the code will be executed.

As far as I know, only a group leader may make radio calls, so it will not be available to all, unless every player is a group leader.
Title: Re:Addaction does not work.
Post by: Fiendish on 04 Jan 2003, 01:37:06
Now I have another problem.
I can add the thingie in the radiolist but he wont do it. :-\
Can some1 show an example?
I would be grateful.
Title: Re:Addaction does not work.
Post by: Fiendish on 08 Jan 2003, 19:53:15
Why wont you help me? I need it! Please!  :'(
Title: Re:Addaction does not work.
Post by: Crassus on 09 Jan 2003, 03:53:11
Fiendish, why don't you post your script/code so that we may correct it if something is wrong. Perhaps you left something important out, or got the syntax/format wrong.... Come on now, help us help you... ::)
Title: Re:Addaction does not work.
Post by: Fiendish on 10 Jan 2003, 10:15:10
I made a trigger with radio alpha as activation.
I put set flyinheight 0 in the field in the trigger and placed it over the chopper.

I guess this is way wrong  :-[
Title: Re:Addaction does not work.
Post by: Chris Death on 10 Jan 2003, 21:59:45
Quote
I put set flyinheight 0 in the field in the trigger and placed it over the chopper

Instead of: set flyinheight 0, you should use:

choppername flyinheight 0

 ;)

And there's no need to place the trigger over the chopper.
The trigger evend doesn't need a size. Just create a trigger:
with a 0/0 range.

Radio calls can also be executed by non-leader units, but
only from the map screen by clicking on the radio there, while
leader units can access them through the 0-0-x menu.

~S~ CD
Title: Re:Addaction does not work.
Post by: Fiendish on 11 Jan 2003, 13:30:12
Thank you. I'll try it right now.
Title: Re:Addaction does not work.
Post by: Fiendish on 13 Jan 2003, 17:04:10
It worked. Thank you. :)