Jump to content
Sign in to follow this  
ralphwiggum

My 100th post - it's a spam!

Recommended Posts

ok..enough with making an asshole of myself. here's the real question

when I make a script with random function, a number between 0 and...let's say 10...gets generated, right?

ok.. here's where I'm confused..assume that I use this on MP mission for some reason. Where would the random numbers will be generated from? from game host? or from each of local computers that players are playing on(this way, it could be different for each PC)?

more detailed question would be, 'would a script in MP mission run independently on each local pc, or will be contorled by central game host?

Share this post


Link to post
Share on other sites

I got an idee moddy's !!!

You can delete him that will be fun. biggrin.gif

Share this post


Link to post
Share on other sites

Hi!

All scripts are running on the game host as far as I know. The result of a single script should be unique, because you can't have multiple results of a script distributed to every client - that would make multiplayer-mode impossible to handle!

Summary: Scripts are running on the game host.

... so your random number would be generated by the server!

biggrin.gif

Share this post


Link to post
Share on other sites

Actually from what I gather each computer generates it's own random number. Which makes it very confusing to do certain advanced gaming ideas. But if you just want a random location of an object, the object will be placed in the last person to run the script's position...yea, confusing.

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  

×