OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting Multiplayer => Topic started by: aazell on 09 Jul 2003, 23:23:48
-
Hi all
I have a command post set up in my mission.
When an MP player enters the command post trigger area I want to add various actions to their action menu. I know how to add actions by the way.
I have written the script that creates the actions but I don't know how to find out the name of the player that has triggered the trigger.
I need to know this because I can then add the actions to that players action menu.
In sp this would be no problem as I would just add them to the PLAYER object but in MP it could be anyone. I need my script to know who that anyone is.
Hope you can help.
Aaz
-
You can use 'player', but not in the activation of the trigger. It needs to be in the condition.
Example: Your trigger is set to be triggered by 'Anybody' in a radius of 50m.
Condition: player in thisList
Activation: player addAction [blablabla]
Does it make sense?
-
Yes totally. I figured the value would be different for MP.
I can't belive I just searched 2000 days worth of forum posts and couldn't find that anywhere.
Thanks for the quick response.
Aaz