Rope::attachRopeToEntity: Difference between revisions
(yay) |
(yay) |
||
| Line 1: | Line 1: | ||
The position supplied can be anywhere, and the entity should anchor relative to that point from it's origin. | The position supplied can be anywhere, and the entity should anchor relative to that point from it's origin. | ||
==Syntax== | ==Syntax== | ||
<syntaxhighlight lang="javascript">rope.attachRopeToEntity(rope, entity, x, y, z, p5);</syntaxhighlight> | <syntaxhighlight lang="javascript">mp.game.rope.attachRopeToEntity(rope, entity, x, y, z, p5);</syntaxhighlight> | ||
=== Required Arguments === | === Required Arguments === | ||
*'''rope:''' Object handle or object | *'''rope:''' Object handle or object | ||
| Line 13: | Line 13: | ||
==Example== | ==Example== | ||
<syntaxhighlight lang="javascript"> | <syntaxhighlight lang="javascript"> | ||
todo | // todo | ||
</syntaxhighlight> | </syntaxhighlight> | ||
==See also== | ==See also== | ||
{{ | {{Rope_s_function_c}} | ||
[[Category:Clientside API]] | [[Category:Clientside API]] | ||
[[Category:TODO: Example]] | [[Category:TODO: Example]] | ||
Revision as of 21:31, 6 May 2017
The position supplied can be anywhere, and the entity should anchor relative to that point from it's origin.
Syntax
mp.game.rope.attachRopeToEntity(rope, entity, x, y, z, p5);
Required Arguments
- rope: Object handle or object
- entity: Entity handle or object
- x: float
- y: float
- z: float
- p5: Boolean
Return value
- Undefined
Example
// todo