15.01.2014, 23:20
So i made a system where a player can drop my gun and then it creates it a bit forward from the player and he can pick it up too but he can only pick it up from where he dropped it i want him to go towards the gun and in that position he can pick it up but he can only pick it up when he is at the position where he created the gun
So if i created the object (gun) like this
what do i then write on IsPlayerInRangeOfPoint?
So if i created the object (gun) like this
pawn Код:
CreateObject(GunObjects[GunID], dGunData[f][ObjPos][0], dGunData[f][ObjPos][1] - 0.5 * floatcos(-(ang + 90.0), degrees), dGunData[f][ObjPos][2]-1, 93.7, 120.0, ang + 60.0);