01.06.2017, 16:58
(
Последний раз редактировалось AbyssMorgan; 19.09.2017 в 06:42.
)
Quote:
AbyssMorgan, im pretty sure its already possible with these include but i just cant see it and i suck at math.
If i have actor, and i would like to implement SIGHT for him for example lets say 90 degree and 100 units far. How would i make it? When i say SIGHT i mean detect element that he can "see" by using his facing angle. |
PHP код:
new Float:x,Float:y,Float:z,Float:z_angle;
GetActorPos(actorid,x,y,z);
GetActorFacingAngle(actorid,z_angle);
if(IsElementOnFakeScreen(x,y,z,playerid,item_player,0.0,z_angle)){
//actor see player
}