OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting Multiplayer => Topic started by: Arctic on 27 Sep 2002, 01:58:12
-
I am working on a script for an MP mission. An action menu appears on all of the players' screens which will bring up the choices for support.
How can I make it so that when player 3 calls for support, the chopper wont go to player 1. Is there a special command I should use? Or is there a code section I should put in the init of all of my scripts?
-
Best think to do is to make the Action menu appear on only one users machine.
Actually, can you post the description.ext for your dialog? I will see what I can find out then.
-
Welcome to the forums, guys
When a player activates a custom action, arguements are passed to the script. The player who called the action will be:
_this select 1
So if you use the line:
_unit = _this select 1
in your script, then make your chopper go to _unit.
However, I would definately put a piece of code at the start of the script that removes everyone's action to call the chopper... otherwise you may get more than one person calling it... and as a result get conflicting movement commands ;)
-
Welcome to the forums, guys
Actually I'm not new to the forum :) Been around since old OFPEC site, jsut don't post much cuz I don't see a New Msg search feature in YABB.
-
All right then... welcome to the new forums ;D