Jump to content
Sign in to follow this  
Zombitch

How to ask server to playMove/doMove ?

Recommended Posts

Hi,

In a multiplayer game type, I am wondering how to get playMove or doMove working on client ?

I would like to make the the following code running on server side when a player do something :

_target  doMove position;

_target is a civilian AI.

The problem is when it's a client (player) which run that code it does nothing except if the client is the server, so I guess playMoveNow, doMove etc.. are local to the server, isn't it ? The thing I don't know is how to make the animation working when the client wants to see the animation?

Thanks ;)

Edited by Zombitch

Share this post


Link to post
Share on other sites

No one ?

To be a bit clearer I would like a client player able to run that script :

_target doMove position;

With _target that is a civilian AI managed by server.

EDIT : The only thing I did to make it work is add a trigger in the editor with a condition like this (UnitShouldMove) and when the condition is successful then I do the move :

UnitName doMove position;

Edited by Zombitch

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  

×