Home   Help Search Login Register  

Author Topic: Return name of MP player that triggered trigger  (Read 1140 times)

0 Members and 1 Guest are viewing this topic.

aazell

  • Guest
Return name of MP player that triggered trigger
« 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

Tactician

  • Guest
Re:Return name of MP player that triggered trigger
« Reply #1 on: 09 Jul 2003, 23:52:08 »
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?

aazell

  • Guest
Re:Return name of MP player that triggered trigger
« Reply #2 on: 09 Jul 2003, 23:56:54 »
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