PC Stable Documentation
 
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
Loading...
Searching...
No Matches
ScriptedEntity.c File Reference

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.
 
private proto native void SetCollisionCylinderTwoWayNative (float radius, float negativeHeight, float positiveHeight)
 Sets collision cylinder for object, representing cylinder from origin(center), height can be defined in both directions.
 
void SetCollisionCylinderTwoWay (float radius, float negativeHeight, float positiveHeight)
 Input value validated version of SetCollisionCylinderTwoWay.
 
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

Function Documentation

◆ GetTriggerShape()

proto native TriggerShape GetTriggerShape ( )

Get the current TriggerShape.

◆ IsInventoryVisible()

override bool IsInventoryVisible ( )

◆ 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.
Definition EnConvert.c:106

Referenced by Trigger::SetExtents().

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

◆ SetCollisionCylinderTwoWay()

void SetCollisionCylinderTwoWay ( float  radius,
float  negativeHeight,
float  positiveHeight 
)

Input value validated version of SetCollisionCylinderTwoWay.

Parameters
radiusfloat Radius of cylinder
negativeHeighfloat Negative height of cylinder
positiveHeightfloat Positive height of cylinder
Note
Automatically sets TriggerShape.CYLINDER
usage :
SetCollisionCylinderTwoWayValidated(3, -3, 3);

References ErrorEx, and SetCollisionCylinderTwoWayNative().

Referenced by CylinderTrigger::EOnInit().

◆ SetCollisionCylinderTwoWayNative()

private proto native void SetCollisionCylinderTwoWayNative ( float  radius,
float  negativeHeight,
float  positiveHeight 
)

Sets collision cylinder for object, representing cylinder from origin(center), height can be defined in both directions.

Parameters
radiusfloat Radius of cylinder
negativeHeighfloat Negative height of cylinder
positiveHeightfloat Positive height of cylinder
Note
Automatically sets TriggerShape.CYLINDER
usage :
void SetCollisionCylinderTwoWay(float radius, float negativeHeight, float positiveHeight)
Input value validated version of SetCollisionCylinderTwoWay.
Definition ScriptedEntity.c:80

Referenced by SetCollisionCylinderTwoWay().

◆ 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

◆ CYLINDER

@ CYLINDER

◆ SPHERE

@ SPHERE