DayZ 1.24
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.
 
proto native void SetTriggerShape (TriggerShape shape)
 Set the TriggerShape to be used, default is TriggerShape.BOX.
 
proto native TriggerShape GetTriggerShape ()
 Get the current TriggerShape.
 
override bool IsInventoryVisible ()
 

Variables

 BOX
 
 SPHERE
 
 CYLINDER
 

Enumeration Type Documentation

◆ TriggerShape

Definition at line 1 of file ScriptedEntity.c.

2{
3 BOX,
4 SPHERE,
6}
BOX
CYLINDER
SPHERE

Function Documentation

◆ GetTriggerShape()

proto native TriggerShape GetTriggerShape ( )

Get the current TriggerShape.

◆ IsInventoryVisible()

override bool IsInventoryVisible ( )

Definition at line 62 of file ScriptedEntity.c.

63 {
64 return false;
65 }

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

Referenced by Trigger::SetExtents().

◆ 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 :
proto native void SetCollisionCylinder(float radius, float height)
Sets collision cylinder for object.

Referenced by CylinderTrigger::EOnInit().

◆ 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.

Referenced by SphereTrigger::EOnInit().

◆ SetTriggerShape()

proto native void SetTriggerShape ( TriggerShape shape)

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

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.