OK i will try and explain this as clearly as i can. I am creating all my own AI scripts for my Generals Mod, and i have come against another obstacle.
The idea is that when a player builds a Naval Factory, they will be informed with a speech file some basic instructions as to relocating the factory etc etc. Now i have no problem at all gettin the speech file to fire where needed. The real problem is that, the speech file is played for *everyone* present in the game.
*** IF ***
[???]'ChinaNavalFactory' has been built by Player 'player0'
*** THEN ***
'CUSTOM_NvFcWarning' plays, allowing overlap FALSE (true to allow, false to disallow).
(this also has entries for each potential player in the game - up to player8)
I have tried using the <Local Player>, but it seems to cause crashes within multiplayer games. Does anyone know of a way to single out the player that triggered it, and respond to that player only with the appropriate action?
Multiplayer Scripting - Player Specific
Started by madmax_the modder, Apr 21 2010 05:50 PM
No replies to this topic
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users