Jump to content
Sign in to follow this  
mr.peanut

Locality of Commands

Recommended Posts

I was wondering about the locality of the following commands:

play/switchMove

setDir

setPos

setVelocity

The fact that setDir is local was exploited in the ECP tail rotor failure script, but how can it be entirely local when the direction of an object determines whether or not it gets hits? Ditto for play/ switchMove. I understand these to also be local, but they would also affect collision detection.

Share this post


Link to post
Share on other sites
Quote[/b] ]play/switchMove

playmove - local

switchmove - global

I don't know if a unit will playmove the animation on the local computer or not when it's run locally, but I do know that if you run it locally, other computers don't see any animation being played. However, switchmove seems to be playing on all computers when run locally. At least that's my experience with it.

Quote[/b] ]setDir

setPos

setVelocity

All global I guess. They have to be, because if they were local you could possibly end up with unit A being on 2 different locations on 2 different clients yay.gif Or they just wouldn't work. But setdir and setpos is global, and I'm quite sure all the "set-something" commands are global.

Share this post


Link to post
Share on other sites
Guest [B.B.S.] T_D

no setFog isn't wink_o.gif

Share this post


Link to post
Share on other sites
T_D @ Aug. 24 2006,23:40)]no setFog isn't  wink_o.gif

hmm, yea, forgot those...the setfog and setovercast and such isn't global confused_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  

×