SetPlayerDimension: Difference between revisions
From Onset Developer Wiki
No edit summary |
No edit summary |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
{{Info|Function|Server|1.0}} | {{Info|Function|Server|1.0}} | ||
{{FuncDescription|Sets the dimension (Virtual World) of this player. Players can only see players in the same dimension. | {{FuncDescription|Sets the dimension (Virtual World) of this player. Players can only see players and other entities in the same dimension. | ||
* Default dimension: 0 | * Default dimension: 0 | ||
* Maximum dimension: 4294967295 | * Maximum dimension: 4294967295}} | ||
{{FuncSyntax|SetPlayerDimension(player, dimension)}} | {{FuncSyntax|SetPlayerDimension(player, dimension)}} | ||
Line 16: | Line 14: | ||
== Example == | == Example == | ||
Player dimension example can be found in the race package: https://github.com/BlueMountainsIO/OnsetLuaScripts/blob/master/race/server/race.lua#L422 | |||
{{RelatedFunctions}} | {{RelatedFunctions}} | ||
{{ | {{ServerPlayerFunctions}} |
Latest revision as of 11:06, 2 September 2020
Description
Sets the dimension (Virtual World) of this player. Players can only see players and other entities in the same dimension.
- Default dimension: 0
- Maximum dimension: 4294967295
Syntax
SetPlayerDimension(player, dimension)
Parameters
- player
The player identifier. - dimension
The new dimension to set.
Return Value
- This function returns nothing.
Example
Player dimension example can be found in the race package: https://github.com/BlueMountainsIO/OnsetLuaScripts/blob/master/race/server/race.lua#L422
See also
- GetPlayerBySteamId
- SetPlayerRagdoll
- SetPlayerDimension
- GetPlayerDimension
- SetPlayerPropertyValue
- GetPlayerPropertyValue
- IsValidPlayer
- GetPlayerCount
- GetAllPlayers
- GetNearestPlayer2D
- GetPlayersInRange2D
- GetPlayersInRange3D
- GetStreamedPlayersForPlayer
- SetPlayerName
- GetPlayerName
- GetPlayerSteamId
- GetPlayerNetworkStats
- SetPlayerSpawnLocation
- IsPlayerStreamedIn
- SetPlayerVoiceRange
- SetPlayerVoiceChannel
- IsPlayerVoiceChannel
- SetPlayerVoiceEnabled
- IsPlayerVoiceEnabled
- IsPlayerTalking
- AddPlayerChat
- AddPlayerChatRange
- AddPlayerChatAll
- GetPlayerState
- GetPlayerMovementMode
- GetPlayerMovementSpeed
- IsPlayerAiming
- IsPlayerReloading
- GetPlayerVehicle
- GetPlayerVehicleSeat
- SetPlayerInVehicle
- RemovePlayerFromVehicle
- SetPlayerLocation
- GetPlayerLocation
- SetPlayerWeaponStat
- SetPlayerWeapon
- GetPlayerWeapon
- GetPlayerEquippedWeaponSlot
- EquipPlayerWeaponSlot
- GetPlayerEquippedWeapon
- SetPlayerHeading
- GetPlayerHeading
- SetPlayerSpectate
- IsPlayerDead
- SetPlayerHealth
- GetPlayerHealth
- SetPlayerArmor
- GetPlayerArmor
- SetPlayerRespawnTime
- GetPlayerRespawnTime
- GetPlayerIP
- GetPlayerPing
- KickPlayer
- GetPlayerLocale
- GetPlayerGUID
- GetPlayerGameVersion
- SetPlayerAnimation
- AttachPlayerParachute
- SetPlayerHeadSize
- GetPlayerHeadSize