Object::createObject: Difference between revisions

From RAGE Multiplayer Wiki
(yay)
 
(yay)
Line 1: Line 1:
p5 - last parameter does not mean object handle is returned<br>maybe a quick view in disassembly will tell us what is actually does<br><br>----------<br><br>prop_tt_screenstatic (0xE2E039BC) is handled different. Not sure how yet but it I know it is.<br>thx fr Xenus.oida  
p5 - last parameter does not mean object handle is returned<br>maybe a quick view in disassembly will tell us what is actually does<br><br>----------<br><br>prop_tt_screenstatic (0xE2E039BC) is handled different. Not sure how yet but it I know it is.<br>thx fr Xenus.oida  
==Syntax==
==Syntax==
<syntaxhighlight lang="javascript">object.createObject(modelHash, x, y, z, networkHandle, createHandle, dynamic);</syntaxhighlight>
<syntaxhighlight lang="javascript">mp.game.object.createObject(modelHash, x, y, z, networkHandle, createHandle, dynamic);</syntaxhighlight>
=== Required Arguments ===
=== Required Arguments ===
*'''modelHash:''' Model hash or name
*'''modelHash:''' Model hash or name
Line 14: Line 14:
==Example==
==Example==
<syntaxhighlight lang="javascript">
<syntaxhighlight lang="javascript">
todo
// todo
</syntaxhighlight>
</syntaxhighlight>
==See also==
==See also==
{{Object_function_c}}
{{Object_s_function_c}}
[[Category:Clientside API]]
[[Category:Clientside API]]
[[Category:TODO: Example]]
[[Category:TODO: Example]]

Revision as of 21:28, 6 May 2017

p5 - last parameter does not mean object handle is returned
maybe a quick view in disassembly will tell us what is actually does

----------

prop_tt_screenstatic (0xE2E039BC) is handled different. Not sure how yet but it I know it is.
thx fr Xenus.oida

Syntax

mp.game.object.createObject(modelHash, x, y, z, networkHandle, createHandle, dynamic);

Required Arguments

  • modelHash: Model hash or name
  • x: float
  • y: float
  • z: float
  • networkHandle: Boolean
  • createHandle: Boolean
  • dynamic: Boolean

Return value

  • Object handle or object

Example

// todo

See also

  • [[Object::disableGlow|mp.game.object.disableGlow