Automatic Move Object
#1

When I near object, i want it automatic move to different place, how to do that ?
Sorry for my bad english
Reply
#2

You first need to detect if the player is near an object.

You can use timers that loops towards the players, or you can make it by (FOR EXAMPLE)
PHP код:
CreateDynamicCircle(Float:xFloat:yFloat:sizeworldid = -1interiorid = -1playerid = -1
then under
PHP код:
 IsPlayerInDynamicArea(playeridareaidrecheck 0
detect if the player is near your object by the radius which you want, If he is near then you can use MoveDynamicObject to the new place you want
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)