SetNPCRagdoll: Difference between revisions

From Onset Developer Wiki
(Created page with "{{Info|Function|Server|1.0}} {{FuncDescription|Set the NPC's ragdoll status.}} {{FuncSyntax|SetNPCRagdoll(npcid, bStatus)}} {{FuncParameters}} {{FuncParam|npcid|The NPC ide...")
 
No edit summary
 
(2 intermediate revisions by one other user not shown)
Line 3: Line 3:
{{FuncDescription|Set the NPC's ragdoll status.}}
{{FuncDescription|Set the NPC's ragdoll status.}}


{{FuncSyntax|SetNPCRagdoll(npcid, bStatus)}}
{{FuncSyntax|SetNPCRagdoll(npcid, bEnable)}}


{{FuncParameters}}
{{FuncParameters}}
{{FuncParam|npcid|The NPC identifier.}}
{{FuncParam|npcid|The NPC identifier.}}
{{FuncParam|bStatus|The ragdoll status.}}
{{FuncParam|bEnable|'''true''' to enable.}}


{{FuncReturnValue|__EDIT_ME__}}
{{FuncReturnValue|Returns '''true''' on success.}}


== Example ==
== Example ==
<syntaxhighlight lang="Lua>
<syntaxhighlight lang="Lua>
SetNPCRagdoll(npcid, true)
</syntaxhighlight>
</syntaxhighlight>


{{RelatedFunctions}}
{{RelatedFunctions}}
{{Template:NPCFunctions}}
{{Template:NPCFunctions}}

Latest revision as of 14:22, 26 June 2021

SetNPCRagdoll

Type: Function
Context: Server
Introduced: v1.0

Description

Set the NPC's ragdoll status.

Syntax

SetNPCRagdoll(npcid, bEnable)

Parameters

  • npcid
    The NPC identifier.
  • bEnable
    true to enable.

Return Value

  • Returns true on success.

Example

SetNPCRagdoll(npcid, true)

See also