Jump to content
Sign in to follow this  
marcusm

Trouble with a server-side spawn script for...

Recommended Posts

Hi all! biggrin_o.gif

ATM, i'm working on a large, dynamic MP-mission(sth. like Unscripted War for MP, but, of course, not as complex and

fascinating as Unscripted War itself!). Now i have a question with a small enemy spawn script i wrote for the mission.

The script itself is called by a trigger(any unit of my squad reaches a certain area) and should only run on the server!

And this is where my problem lies: If any unit, except for the host, calls the trigger, my script is terminated

because of the '?!local Server...'-query.

My question: Is it possible to call the trigger by any client AND to pass the script execution to the server?

(client fires the trigger->script runs on the server(only!))

It was my first idea just not to use the'?!local server'-query but i'm working very often with the 'player'-command

which describes another player for every client in MP and thats not what i need. :-/

The second problem is that the spawn script depends on many variables that only exist and change on the server...

I would be very appreciated for any suggestions!

Thank you all very much for your time!

Greetings smile_o.gif

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  

×