DIFF

class ScriptedEntitySource

ScriptedEntity EntityAI Entity ObjectTyped Object IEntity Managed

All members, including inherited

Methods 9

proto native void SetClippingInfo(vector mins, vector maxs, float radius)

Sets collision properties for object

mins
vector Min values of box
maxs
vector Max values of box
radius
float Radius of bounding sphere
NoteThis function is obsolete, use rather SetCollisionBox()
proto native void SetCollisionBox(vector mins, vector maxs)

Sets collision box for object

mins
vector Min values of box
maxs
vector Max values of box
NoteAutomatically sets TriggerShape.BOX
usage :
vector mins = "-1 -1 -1";
vector maxs = "1 1 1";
SetCollisionBox(mins, maxs);
Referenced by Trigger.SetExtents()
proto native void SetCollisionSphere(float radius)

Sets collision sphere for object

radius
float Radius of cylinder
NoteAutomatically sets TriggerShape.SPHERE
usage :
SetCollisionSphere(3);
proto native void SetCollisionCylinder(float radius, float height)

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

radius
float Radius of cylinder
height
float Height of cylinder
NoteAutomatically sets TriggerShape.CYLINDER
usage :
SetCollisionCylinder(3, 6);
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

radius
float Radius of cylinder
negativeHeigh
float Negative height of cylinder
positiveHeight
float Positive height of cylinder
NoteAutomatically sets TriggerShape.CYLINDER
usage :
SetCollisionCylinderTwoWay(3, -3, 3);
void SetCollisionCylinderTwoWay(float radius, float negativeHeight, float positiveHeight)

Input value validated version of SetCollisionCylinderTwoWay

radius
float Radius of cylinder
negativeHeigh
float Negative height of cylinder
positiveHeight
float Positive height of cylinder
NoteAutomatically sets TriggerShape.CYLINDER
usage :
SetCollisionCylinderTwoWayValidated(3, -3, 3);
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()