Перейти к содержанию

Brain::registerObjectScriptBrain

Материал из RAGE MP Wiki Archive

Registers a script for any object with a specific model hash.

BRAIN::REGISTER_OBJECT_SCRIPT_BRAIN('ob_telescope', ${prop_telescope_01}, 100, 4.0, -1, 9);

- Nacorpio

Syntax

<syntaxhighlight lang="javascript">mp.game.brain.registerObjectScriptBrain(scriptName, p1, p2, p3, p4, p5);</syntaxhighlight>

Required Arguments

  • scriptName: String
  • p1: Model hash or name
  • p2: int
  • p3: float
  • p4: int
  • p5: int

Return value

  • Undefined

Example

<syntaxhighlight lang="javascript"> // todo </syntaxhighlight>

See also