Warning: include(/var/www/html/forum/Sources/../../../includes/depot_files/OFPEC_get_header_image.inc.php): failed to open stream: No such file or directory in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 146

Warning: include(): Failed opening '/var/www/html/forum/Sources/../../../includes/depot_files/OFPEC_get_header_image.inc.php' for inclusion (include_path='.:/usr/local/lib/php') in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 146

Notice: Undefined index: OFPEC in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152

Notice: Trying to access array offset on value of type null in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152

Notice: Trying to access array offset on value of type null in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152
    Home   Help Login Register  

Author Topic: Return name of MP player that triggered trigger  (Read 1908 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