SetPlayerSpawnLocation: Difference between revisions

From Onset Developer Wiki
No edit summary
No edit summary
Line 6: Line 6:


{{FuncParameters}}
{{FuncParameters}}
{{FuncParam|player|__EDIT_ME__}}
{{FuncParam|player|The player identifier.}}
{{FuncParam|x|The X axis}}
{{FuncParam|x|The X axis}}
{{FuncParam|y|The Y axis}}
{{FuncParam|y|The Y axis}}

Revision as of 15:39, 19 November 2019

SetPlayerSpawnLocation

Type: Function
Context: Server
Introduced: v1.0

Description

Set the player's spawn point using this function.

Syntax

SetPlayerSpawnLocation(player, x, y, z, h)

Parameters

  • player
    The player identifier.
  • x
    The X axis
  • y
    The Y axis
  • z
    The Z axis
  • h
    The rotation.

Return Value

  • This function returns nothing.

Example

AddEvent("OnPlayerJoin", function(player)
	SetPlayerSpawnLocation(player, 125773.000000, 80246.000000, 1645.000000, 90.0)
end)

See also

index.lua

Game

Colors

Miscellaneous

Time

Server

Explosion

Door

Network

NPC

Object

Package

Event

Pickup

Player

Text3D

Timer

Vehicles

HTTP