making a object follow you?
#1

ok, so say if you typed a command

then a bomb would appear, then it would chase you until it hit you then it exploded


help?
Reply
#2

Attach it to the player.
Reply
#3

Quote:
Originally Posted by Scarface~
Посмотреть сообщение
Attach it to the player.
no.

i actually want it to be free to move around rather than trying to stick to my pos
Reply
#4

you need MoveObject

get the x,y,z position of the player ..put the same x,y,z into the moveobject x,y,z and it should folow you.
You also dont need to dubble post
Reply
#5

Quote:
Originally Posted by boelie
Посмотреть сообщение
you need MoveObject

get the x,y,z position of the player ..put the same x,y,z into the moveobject x,y,z and it should folow you.
You also dont need to dubble post
how to do?
xd
Reply
#6

Quote:
Originally Posted by thomas..
Посмотреть сообщение
how to do?
xd
pawn Код:
new Float:X, Float:Y, Float:Z;
GetPlayerPos(playerid,X, Y, Z);

^ to get player position.
pawn Код:
new Float:X, Float:Y, Float:Z;
MoveObject(playerid,X, Y, Z);

^ to move the object.
Reply
#7

Quote:
Originally Posted by Matej_
Посмотреть сообщение
pawn Код:
new Float:X, Float:Y, Float:Z;
GetPlayerPos(playerid,X, Y, Z);

^ to get player position.
pawn Код:
new Float:X, Float:Y, Float:Z;
MoveObject(playerid,X, Y, Z);

^ to move the object.
yes but moving the object to playerpos' offsets?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)