Dayz Explorer 1.28.160049
Loading...
Searching...
No Matches
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.
 
proto native void SetCollisionBox (vector mins, vector maxs)
 Sets collision box for object.
 
proto native void SetCollisionSphere (float radius)
 Sets collision sphere for object.
 
proto native void SetCollisionCylinder (float radius, float height)
 Sets collision cylinder for object, representing cylinder from origin(center) up to defined positive height.
 

Variables

 BOX
 
 SPHERE
 
 CYLINDER
 

Enumeration Type Documentation

◆ TriggerShape

Definition at line 1 of file scriptedentity.c.

Function Documentation

◆ 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);
proto native void SetCollisionBox(vector mins, vector maxs)
Sets collision box for object.

◆ SetCollisionCylinder()

proto native void SetCollisionCylinder ( float radius,
float height )

Sets collision cylinder for object, representing cylinder from origin(center) up to defined positive height.

Parameters
radiusfloat Radius of cylinder
heightfloat Height of cylinder
Note
Automatically sets TriggerShape.CYLINDER
usage :
proto native void SetCollisionCylinder(float radius, float height)
Sets collision cylinder for object, representing cylinder from origin(center) up to defined positive ...

◆ SetCollisionSphere()

proto native void SetCollisionSphere ( float radius)

Sets collision sphere for object.

Parameters
radiusfloat Radius of cylinder
Note
Automatically sets TriggerShape.SPHERE
usage :
proto native void SetCollisionSphere(float radius)
Sets collision sphere for object.

Variable Documentation

◆ BOX

@ BOX

Definition at line 0 of file scriptedentity.c.

◆ CYLINDER

@ CYLINDER

Definition at line 2 of file scriptedentity.c.

◆ SPHERE

@ SPHERE

Definition at line 1 of file scriptedentity.c.