Brain::registerObjectScriptBrain: Difference between revisions
(yay) |
No edit summary |
||
| (One intermediate revision by one other user not shown) | |||
| Line 1: | Line 1: | ||
Registers a script for any object with a specific model hash.<br><br>BRAIN::REGISTER_OBJECT_SCRIPT_BRAIN('ob_telescope', ${prop_telescope_01}, 100, 4.0, -1, 9);<br><br>- Nacorpio | Registers a script for any object with a specific model hash.<br><br>BRAIN::REGISTER_OBJECT_SCRIPT_BRAIN('ob_telescope', ${prop_telescope_01}, 100, 4.0, -1, 9);<br><br>- Nacorpio | ||
==Syntax== | ==Syntax== | ||
<syntaxhighlight lang="javascript">brain.registerObjectScriptBrain(scriptName, p1, p2, p3, p4, p5);</syntaxhighlight> | <syntaxhighlight lang="javascript">mp.game.brain.registerObjectScriptBrain(scriptName, p1, p2, p3, p4, p5);</syntaxhighlight> | ||
=== Required Arguments === | === Required Arguments === | ||
*'''scriptName:''' String | *'''scriptName:''' String | ||
| Line 18: | Line 18: | ||
{{Brain_s_function_c}} | {{Brain_s_function_c}} | ||
[[Category:Clientside API]] | [[Category:Clientside API]] | ||
[[Category:Brain API]] | |||
[[Category:TODO: Example]] | [[Category:TODO: Example]] | ||
Latest revision as of 21:07, 11 May 2017
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
mp.game.brain.registerObjectScriptBrain(scriptName, p1, p2, p3, p4, p5);
Required Arguments
- scriptName: String
- p1: Model hash or name
- p2: int
- p3: float
- p4: int
- p5: int
Return value
- Undefined
Example
// todo