MakeDynamicObject Range...
#1

How can I make the range here please?
Код:
MoveDynamicObject(objectid, Float:x, Float:y, Float:z, Float:speed);
Reply
#2

Range for what? Using the

pawn Код:
Float:x, Float:y, Float:z;
it will move the object to those coordinates with a nice animation too, and using the

pawn Код:
Float:speed
will set how fast/slow it goes.
Reply
#3

range? range of what? that's for moving the dynamic object to the specific point with the specific speed
Reply
#4

Quote:
Originally Posted by alinategh
Посмотреть сообщение
range? range of what? that's for moving the dynamic object to the specific point with the specific speed
Yes thank you for replicating my answer but dumbing it down.
Reply
#5

I meant, U can do it in radius of 5 meters, to open the gate, how can I do that?
Reply
#6

Quote:
Originally Posted by yaron0600
Посмотреть сообщение
I meant, U can do it in radius of 5 meters, to open the gate, how can I do that?
Use IsPlayerInRangeOfPoint. For example:

pawn Код:
if(IsPlayerInRangeOfPoint(playerid, Float:range, Float:x, Float:y, Float:z); /* these x y z
will be the position of the gate, and the range will be how far the player should be.*/

{
    MoveDynamicObject(objectid, Float:x, Float:y, Float:z, Float:speed); /* move the
        object to the new coordinates*/

}
Reply
#7

Quote:
Originally Posted by DanishHaq
Посмотреть сообщение
Yes thank you for replicating my answer but dumbing it down.
Uh, what's the rush man...I got your reply when i just replied my own one, you were faster.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)