AMX Mod X API Documentation

Signature
native GetModelBoundingBox(entity, Float:mins[3], Float:maxs[3], sequence = Model_DefaultSize);
Description

Gets size of a model bounding box.

Parameters
  • entity The entity index to use.
  • mins The local negative bounding box distance.
  • maxs The local positive bounding box distance.
  • sequence The animation sequence to retrieve.

    Model_DefaultSize retrieves ideal moevement hull size.

    Model_CurrentSequence retrieves hull size of the current sequence.

    Values >= 0 will specify which sequence to retrieve size from.

Returns

1 on success, 0 on faillure.

Errors
  • Invalid entity.

    Invalid model pointer.

Назад
Верх