Dayz 1.25
Dayz Code Explorer by KGB
Загрузка...
Поиск...
Не найдено
Файл ScriptedEntity.c

См. исходные тексты.

Перечисления

enum  TriggerShape
 

Функции

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 ()
 

Переменные

 BOX
 
 SPHERE
 
 CYLINDER
 

Перечисления

◆ TriggerShape

2{
3 BOX,
4 SPHERE,
6}
BOX
Definition ScriptedEntity.c:0
CYLINDER
Definition ScriptedEntity.c:2
SPHERE
Definition ScriptedEntity.c:1

Функции

◆ GetTriggerShape()

proto native TriggerShape GetTriggerShape ( )

Get the current TriggerShape.

◆ IsInventoryVisible()

override bool IsInventoryVisible ( )
63 {
64 return false;
65 }

◆ SetClippingInfo()

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

Sets collision properties for object.

Аргументы
minsvector Min values of box
maxsvector Max values of box
radiusfloat Radius of bounding sphere
Заметки
This function is obsolete, use rather SetCollisionBox()

◆ SetCollisionBox()

proto native void SetCollisionBox ( vector mins,
vector maxs )

Sets collision box for object.

Аргументы
minsvector Min values of box
maxsvector Max values of box
Заметки
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.
Definition EntityAI.c:95
Definition EnConvert.c:106

Используется в Trigger::SetExtents().

◆ SetCollisionCylinder()

proto native void SetCollisionCylinder ( float radius,
float height )

Sets collision cylinder for object.

Аргументы
radiusfloat Radius of cylinder
heightfloat Height of cylinder
Заметки
Automatically sets TriggerShape.CYLINDER
usage :
proto native void SetCollisionCylinder(float radius, float height)
Sets collision cylinder for object.

Используется в CylinderTrigger::EOnInit().

◆ SetCollisionSphere()

proto native void SetCollisionSphere ( float radius)

Sets collision sphere for object.

Аргументы
radiusfloat Radius of cylinder
Заметки
Automatically sets TriggerShape.SPHERE
usage :
proto native void SetCollisionSphere(float radius)
Sets collision sphere for object.

Используется в SphereTrigger::EOnInit().

◆ SetTriggerShape()

proto native void SetTriggerShape ( TriggerShape shape)

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

Переменные

◆ BOX

@ BOX

◆ CYLINDER

@ CYLINDER

◆ SPHERE

@ SPHERE