Skip to main content

ALLOCATE_SCRIPT_TO_OBJECT

Game.AllocateScriptToObjectHash0x71C30148
Usage
Game.AllocateScriptToObject(scriptName, modelHashKey, percentageChance, activationRange, objectGroupingId)

Associates a script brain with a certain object model.

Parameters

  • scriptNamestringchar*
  • modelHashKeyintegerint
  • percentageChanceintegerint
  • activationRangenumberfloat
  • objectGroupingIdintegerint

Returns

Nothing

Original declaration
// 0x71C30148
void ALLOCATE_SCRIPT_TO_OBJECT(char* scriptName, int modelHashKey, int percentageChance, float activationRange, int objectGroupingId);