how chack distance
#1

Hi. if i use

}

stock SukuriameKioskelius(Float, Float:y, Float:z, Float:rx, Float:ry, Float:rz)
{
CreateDynamicObject(1340, x, y, z, rx, ry, rz);

}

how to get distance for what object ?? I need press alt and script start. I try use: if(IsPlayerInRangeOfPoint(2.0, SukuriameKioskelius))
Reply
#2

Assign an ID to the object and get the position of such object, then compare the player's position with the object's position within a defined range.

pawn Код:
new object = CreateDynamicObject(...);
https://sampwiki.blast.hk/wiki/GetObjectPos

https://sampwiki.blast.hk/wiki/IsPlayerInRangeOfPoint
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)