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: player using an action 'groupchats' a message.  (Read 3221 times)

0 Members and 1 Guest are viewing this topic.

Offline filth

  • Members
  • *
  • Who's the bad man?
player using an action 'groupchats' a message.
« on: 17 Apr 2008, 22:33:25 »
the situation is: i have an object which has been placed on a multiplayer map and i have added an action to that object. what i need is a script / line of code that tells the rest of the side that an individual has used that action.

specifically: the object is an ammo box. and the action is to move it. the chat line would be: "Player1 has moved the ammo crate."
thx in advance.
« Last Edit: 20 Apr 2008, 18:30:45 by filth_merchant 101 »

Offline Mandoble

  • Former Staff
  • ****
    • Grunt ONE and MandoMissile suite
Re: player using an action 'groupchats' a message.
« Reply #1 on: 18 Apr 2008, 16:42:39 »
without scripting:
Add a trigger which condition is my_message > 0, check it continuously. in the action field put your chat message and also my_message = 0.

Somewhere inside your action code put:
Code: [Select]
my_message = 1;publicVariable "my_message"

Offline filth

  • Members
  • *
  • Who's the bad man?
Re: player using an action 'groupchats' a message.
« Reply #2 on: 20 Apr 2008, 18:30:34 »
thanks.  :cool2: