madmax_the modder
15 years ago
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 , 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?


PS : I first tried doing this simply through the Naval Factories *Unit Specific Sounds* and adding the VoiceCreate ... but that doesnt seem to do anything at all. It doesnt crash , it simply jsut doesnt play the sound file. And im sure i added it in the right areas.
Sponsor