AttachPlayerParachute: Difference between revisions

From Onset Developer Wiki
No edit summary
No edit summary
 
(One intermediate revision by the same user not shown)
Line 9: Line 9:
{{FuncParam|bAttach|The boolean status.}}
{{FuncParam|bAttach|The boolean status.}}


{{FuncReturnValue|__EDIT_ME__}}
{{FuncReturnValue|This function returns '''true''' on success.}}


== Example ==
== Example ==
<syntaxhighlight lang="Lua>
<syntaxhighlight lang="Lua>
-- code
AddCommand("parachute", function(player)
    AttachPlayerParachute(player, true)
end)
</syntaxhighlight>
</syntaxhighlight>


{{RelatedFunctions}}
{{RelatedFunctions}}
{{ServerPlayerFunctions}}
{{ServerPlayerFunctions}}

Latest revision as of 12:42, 28 May 2021

AttachPlayerParachute

Type: Function
Context: Server
Introduced: v1.0

Description

Attach the specified player a parachute.

Syntax

AttachPlayerParachute(player, bAttach)

Parameters

  • player
    The player identifier.
  • bAttach
    The boolean status.

Return Value

  • This function returns true on success.

Example

AddCommand("parachute", function(player)
    AttachPlayerParachute(player, true)
end)

See also