09.02.2017, 19:57
Quote:
This function is long, but I think it would replace the heap of functions with respect to vision. (Players, actors, cars, npc's ...)
Erase this... Код:
IsPlayerOnPlayerScreen IsVehicleOnPlayerScreen IsObjectOnPlayerScreen IsActorOnPlayerScreen IsPlayerOnFakeScreen IsVehicleOnFakeScreen IsObjectOnFakeScreen IsActorOnFakeScreen IsDynamicObjectOnPlayerScreen IsDynamicObjectOnFakeScreen IsDynamicActorOnPlayerScreen IsDynamicActorOnFakeScreen Код:
bool:IsPointViewToPoint(x, y, z, px, py, pz, Float:range, element_orientation:orientation, Float:rx=INVALID_ROTATION, Float:rz=INVALID_ROTATION, Float:vrx=VERTICAL_CAMERA_RADIUS, Float:vrz=HORIZONTAL_CAMERA_RADIUS, bool:testLOS=true, bool:testVW=true) |
I think you mean:
PHP код:
bool:IsPointViewToPoint(
x, y, z, px, py, pz,
Float:range,
items:item_type, //player, actor, npc etc.
Float:rx=INVALID_ROTATION,Float:rz=INVALID_ROTATION,
Float:vrx=VERTICAL_CAMERA_RADIUS,Float:vrz=HORIZONTAL_CAMERA_RADIUS,bool:testLOS=true,bool:testVW=true);
I think add one/two universal function, and convert old functions to macro definitions. The same method as Stream3D Module.