Jump to content
🛡️FORUMS ARE IN READ-ONLY MODE Read more... ×
Sign in to follow this  
Lin_Chino

SAY command,  in server side

Recommended Posts

Hello

I´m using this command ("SAY"),  in a trigger with a few more instructions with a condition of : Local Server...so that it has to be carry out by the server.

.. all the line of commands works perfectly except for the

sound effect that should provide this command SAY :

I hear it when I test at home , but not when i play the mission as client.

There is no problem if the trigger works in the "players side"...but i need it to work in the "server side".

could somebody tell me if this has solution under that condition?

Thanx for all

Share this post


Link to post
Share on other sites
Hello

I´m using this command ("SAY"),  in a trigger with a few more instructions with a condition of : Local Server...so that it has to be carry out by the server.

.. all the line of commands works perfectly except for the

sound effect that should provide this command SAY :

I hear it when I test at home , but not when i play the mission as client.

There is no problem if the trigger works in the "players side"...but i need it to work in the "server side".

could somebody tell me if this has solution under that condition?

Thanx for all

As you wrote the commands or done on the server only, bcs you're using the condition "local Server". Probably the other commands you're using have a global effect (most commands), therefore you can execute them local but they have global effects.

"SAY" on the other hand, does only have a local effect, so if you execute it on the server, the sounds can be heard on the server only, and NOT on the clients!

Share this post


Link to post
Share on other sites
Quote[/b] ]"SAY" on the other hand, does only have a local effect, so if you execute it on the server, the sounds can be heard on the server only, and NOT on the clients!

Ufff...i didn´t know that...so i was testing different options many times...i was going to become crazy.

The problem now...is that i need the other commands in the server side...but i need the "SAY" working in each computer...i´ll try to solve it.

THANK YOU FRIEND ˇ

Share this post


Link to post
Share on other sites

the "say" command works clientside without any problems. You only have to find a suitable "speaker" biggrin_o.gif

Share this post


Link to post
Share on other sites

Yes, but...

I try to do it work clientside with an object created in the server side... :

(Object created only by the server) SAY "Snifff"

And everyone must hear "Sniff"

I try harder and harder but sad_o.gif

Share this post


Link to post
Share on other sites

You Trigger does certainly has more conditions, except of "local server"?!

Then do the following:

Condition: All Other Conditions except "local server"

On Activation:<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">xxx say "abc"; if (local server) then {Your Commands to be executed on server (to be seperated with a;)}

Share this post


Link to post
Share on other sites

I did it...but it doesn´t work...the problem is :

The object created has to provide the sound, and that object is created IN and ONLY, by the server (it has to be so, bcs there would be a HEAT125 for each player, and i only want to create one) :

Original CONDITION field :

Bombardeo && Local Server

Original ACTIVATION field :

XYZP1 = [(GetPos M2 Select 0) -150 + Random 300, (GetPos M2 Select 1) -100, (GetPos M2 Select 2)+5 + Random 20] ;

Pepo1 = "Heat125" CreateVehicle XYZP1 ;

Pepo1 SetVelocity [0, 200, 0] ;

Pepo1 SAY "shhh"

I have tried with your option and a hundred more...

I don´t know very much about local and public variables...could be there the solution??...bcs "pepo1" is only in the server...maybe that´s the reason i don´t hear it anyway.

Share this post


Link to post
Share on other sites

Then use 2 triggers:

1st trigger:

Original CONDITION field :

Bombardeo && Local Server

Original ACTIVATION field :

XYZP1 = [(GetPos M2 Select 0) -150 + Random 300, (GetPos M2 Select 1) -100, (GetPos M2 Select 2)+5 + Random 20] ;

Pepo1 = "Heat125" CreateVehicle XYZP1 ;

Pepo1 SetVelocity [0, 200, 0] ;

publicvariable "pepo1"

2nd trigger:

COUNTDOWN fields :

1,1,1

CONDITION field :

Bombardeo

ACTIVATION field :

Pepo1 SAY "shhh"

Share this post


Link to post
Share on other sites

IT WORKS FINE ˇ ˇ biggrin_o.gifbiggrin_o.gifbiggrin_o.gif

THANKS A LOT ])a)( ˇ ˇ ˇ ˇ

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×