1217 {
1219 return;
1223
1224 vector direction = ib.GetDirection();
1226
1228 if (direction[0] < 0)
1229 angle = -angle;
1230
1233
1235 int count = items.Count();
1236 for ( int i = 0; i < count; ++i )
1237 {
1238 item = items.Get(i);
1239 if ( item )
1241 }
1242 }
InventoryMode
NOTE: PREDICTIVE is not to be used at all in multiplayer.
proto native bool EnumerateInventory(InventoryTraversalType tt, out array< EntityAI > items)
enumerate inventory using traversal type and filling items array
bool DropEntityInBounds(InventoryMode mode, EntityAI owner, notnull EntityAI item, vector halfExtents, float angle, float cosAngle, float sinAngle)
script counterpart to engine's class Inventory
Result for an object found in CGame.IsBoxCollidingGeometryProxy.
static float Dot(vector v1, vector v2)
Returns Dot product of vector v1 and vector v2.
static const vector Forward
InventoryTraversalType
tree traversal type, for more see http://en.wikipedia.org/wiki/Tree_traversal
static proto float Acos(float c)
Returns angle in radians from cosinus.
static proto float Cos(float angle)
Returns cosinus of angle in radians.
static proto float Sin(float angle)
Returns sinus of angle in radians.