SetDoorDimension: Difference between revisions

From Onset Developer Wiki
(Created page with "{{Info|Function|Server|1.0}} {{FuncDescription|Sets the dimension of this door. Players can only see doors in the same dimension. * Default dimension: 0 * Maximum dimension:...")
 
No edit summary
 
(2 intermediate revisions by one other user not shown)
Line 11: Line 11:
{{FuncParam|dimension|The new dimension to set.}}
{{FuncParam|dimension|The new dimension to set.}}


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


== Example ==
== Example ==
__EDIT_ME__
<syntaxhighlight lang="Lua">
SetDoorDimension(doorId, 1)
</syntaxhighlight>


{{RelatedFunctions}}
{{RelatedFunctions}}
__EDIT_ME__
{{Template:DoorFunctions}}

Latest revision as of 18:44, 30 August 2020

SetDoorDimension

Type: Function
Context: Server
Introduced: v1.0

Description

Sets the dimension of this door. Players can only see doors in the same dimension.

  • Default dimension: 0
  • Maximum dimension: 4294967295

Syntax

SetDoorDimension(door, dimension)

Parameters

  • vehicle
    The door identifier.
  • dimension
    The new dimension to set.

Return Value

  • Returns true.

Example

SetDoorDimension(doorId, 1)

See also