Dayz Explorer  1.24.157551 (v105080)
Dayz Code Explorer by Zeroy
scriptedentity.c File Reference

Go to the source code of this file.

Enumerations

enum  TriggerShape
 

Functions

enum TriggerShape SetClippingInfo (vector mins, vector maxs, float radius)
 Sets collision properties for object. More...
 
proto native void SetCollisionBox (vector mins, vector maxs)
 Sets collision box for object. More...
 
proto native void SetCollisionSphere (float radius)
 Sets collision sphere for object. More...
 
proto native void SetCollisionCylinder (float radius, float height)
 Sets collision cylinder for object. More...
 
proto native void SetTriggerShape (TriggerShape shape)
 Set the TriggerShape to be used, default is TriggerShape.BOX. More...
 
proto native TriggerShape GetTriggerShape ()
 Get the current TriggerShape. More...
 
override bool IsInventoryVisible ()
 

Variables

 BOX
 
 SPHERE
 
 CYLINDER
 

Enumeration Type Documentation

◆ TriggerShape

Definition at line 1 of file scriptedentity.c.

Function Documentation

◆ GetTriggerShape()

proto native TriggerShape GetTriggerShape ( )

Get the current TriggerShape.

◆ IsInventoryVisible()

override bool IsInventoryVisible ( )

Definition at line 62 of file scriptedentity.c.

◆ SetClippingInfo()

enum TriggerShape SetClippingInfo ( vector  mins,
vector  maxs,
float  radius 
)

Sets collision properties for object.

Parameters
minsvector Min values of box
maxsvector Max values of box
radiusfloat Radius of bounding sphere
Note
This function is obsolete, use rather SetCollisionBox()

◆ SetCollisionBox()

proto native void SetCollisionBox ( vector  mins,
vector  maxs 
)

Sets collision box for object.

Parameters
minsvector Min values of box
maxsvector Max values of box
Note
Automatically sets TriggerShape.BOX
usage :
vector mins = "-1 -1 -1";
vector maxs = "1 1 1";
SetCollisionBox(mins, maxs);

◆ SetCollisionCylinder()

proto native void SetCollisionCylinder ( float  radius,
float  height 
)

Sets collision cylinder for object.

Parameters
radiusfloat Radius of cylinder
heightfloat Height of cylinder
Note
Automatically sets TriggerShape.CYLINDER
usage :

◆ SetCollisionSphere()

proto native void SetCollisionSphere ( float  radius)

Sets collision sphere for object.

Parameters
radiusfloat Radius of cylinder
Note
Automatically sets TriggerShape.SPHERE
usage :

◆ SetTriggerShape()

proto native void SetTriggerShape ( TriggerShape  shape)

Set the TriggerShape to be used, default is TriggerShape.BOX.

Variable Documentation

◆ BOX

@ BOX

Definition at line 2 of file scriptedentity.c.

◆ CYLINDER

@ CYLINDER

Definition at line 4 of file scriptedentity.c.

◆ SPHERE

@ SPHERE

Definition at line 3 of file scriptedentity.c.

SetCollisionCylinder
proto native void SetCollisionCylinder(float radius, float height)
Sets collision cylinder for object.
SetCollisionBox
proto native void SetCollisionBox(vector mins, vector maxs)
Sets collision box for object.
vector
Definition: enconvert.c:105
SetCollisionSphere
proto native void SetCollisionSphere(float radius)
Sets collision sphere for object.