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

◆ SetCollisionCylinderTwoWay()

void ScriptedEntity::SetCollisionCylinderTwoWay ( float radius,
float negativeHeight,
float positiveHeight )
inlineprivate

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 строка 84

85 {
86 if (radius <=0)
87 {
88 ErrorEx("Radius has to be > 0");
89 return;
90 }
91
92 if (negativeHeight > positiveHeight)
93 {
94 ErrorEx("Negative height cannot be higher than positive height");
95 return;
96 }
97
98 SetCollisionCylinderTwoWayNative(radius, negativeHeight, positiveHeight);
99 }
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().