14 m_IsActionActive =
false;
25 if (
GetGame().IsServer() && !m_IsActionActive)
28 if( !
GetGame().IsDedicatedServer())
33 if ( player_this == player_owner )
42 if( !
GetGame().IsDedicatedServer())
47 if ( player_this == player_owner )
92 DayZPhysics.
RaycastRV( from, to, contact_pos, contact_dir, contactComponent, NULL , NULL, player,
false,
false, ObjIntersectIFire);
102 else if( dist < 100 )
124 GetInventory().CreateInInventory(
"Battery9V" );
void AddAction(typename actionName)
void RemoveAction(typename actionName)
proto native vector GetCurrentCameraPosition()
proto native vector GetCurrentCameraDirection()
static proto bool RaycastRV(vector begPos, vector endPos, out vector contactPos, out vector contactDir, out int contactComponent, set< Object > results=NULL, Object with=NULL, Object ignore=NULL, bool sorted=false, bool ground_only=false, int iType=ObjIntersectView, float radius=0.0, CollisionFlags flags=CollisionFlags.NEARESTCONTACT)
Raycasts world by given parameters.
override void SetActions()
static const float RANGEFINDER_MAX_DISTANCE
void StopPeriodicMeasurement()
void StartPeriodicMeasurement()
override void OnDebugSpawn()
float GetMeasurementUpdateInterval()
override void OnWorkStop()
override void OnWorkStart()
proto string ToString(bool simple=true)
static proto native float Distance(vector v1, vector v2)
Returns the distance between tips of two 3D vectors.
proto native CGame GetGame()
static proto float Round(float f)
Returns mathematical round of value.