DayZ 1.28
DayZ Explorer by KGB
 
Загрузка...
Поиск...
Не найдено

◆ SetCollisionCylinderTwoWay()

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

Input value validated version of SetCollisionCylinderTwoWay.

Аргументы
radiusfloat Radius of cylinder
negativeHeighfloat Negative height of cylinder
positiveHeightfloat Positive height of cylinder
Заметки
Automatically sets TriggerShape.CYLINDER
usage :
SetCollisionCylinderTwoWayValidated(3, -3, 3);

См. определение в файле ScriptedEntity.c строка 80

81 {
82 if (radius <=0)
83 {
84 ErrorEx("Radius has to >= 0");
85 return;
86 }
87
88 if (negativeHeight > positiveHeight)
89 {
90 ErrorEx("Negative height cannot be higher than positive height");
91 return;
92 }
93
94 SetCollisionCylinderTwoWayNative(radius, negativeHeight, positiveHeight);
95 }
proto native void SetCollisionCylinderTwoWayNative(float radius, float negativeHeight, float positiveHeight)
Sets collision cylinder for object, representing cylinder from origin(center), height can be defined ...
enum ShapeType ErrorEx

Перекрестные ссылки ErrorEx и SetCollisionCylinderTwoWayNative().

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