306 {
308 return null;
309
311 vector positionWorld = ModelToWorld(positionModel);
312
314 if (storageBox)
315 {
316 vector directionModel = GetMemoryPointPos(
"storagecratedir");
317 vector directionWorld = ModelToWorld(directionModel);
318
320
323
325 }
326
327 return storageBox;
328 }
const string STORAGE_BOX_CLASSNAME
const string CRATE_SPAWN_POSITION_MEM_NAME
const int ECE_EQUIP_CARGO
const int ECE_UPDATEPATHGRAPH
const int ECE_CREATEPHYSICS
static vector Direction(vector p1, vector p2)
Returns direction vector from point p1 to point p2.
proto native vector Vector(float x, float y, float z)
Vector constructor from components.
static proto float Atan2(float y, float x)
Returns angle in radians from tangent.
static const float RAD2DEG