14.11.2016, 06:51
(
Последний раз редактировалось AbyssMorgan; 14.11.2016 в 11:22.
)
1. Works with NPC, however, requires the use
After using the function NPC has set the camera.
2. If you want to do it without AimAt can also get random camera rotation.
3. I will add checking VirtualWorld in a future update.
PHP код:
FCNPC_AimAt(npcid, Float:x, Float:y, Float:z, bool:shoot = false, shoot_delay = -1, bool:setangle = true);
2. If you want to do it without AimAt can also get random camera rotation.
PHP код:
new V3[Vectors3D];
FCNPC_GetPosition(npcid,V3[T3D:X],V3[T3D:Y],V3[T3D:Z]);
if(IsPlayerOnFakeScreen(V3[T3D:X],V3[T3D:Y],V3[T3D:Z],playerid,0.0,float(random(360)),VERTICAL_CAMERA_RADIUS,HORIZONTAL_CAMERA_RADIUS,true)){
//attack !
}
