SetPlayerOutline: Difference between revisions
From Onset Developer Wiki
Created page with "{{Info|Function|Client|1.0}} {{FuncDescription|__EDIT_ME__}} {{FuncSyntax|SetPlayerOutline(player [, bEnable])}} {{FuncParameters}} {{FuncParam|player |__EDIT_ME__}} {{Func..." |
No edit summary |
||
(One intermediate revision by one other user not shown) | |||
Line 1: | Line 1: | ||
{{Info|Function|Client|1.0}} | {{Info|Function|Client|1.0}} | ||
{{FuncDescription| | {{FuncDescription|Creates an outline around the player mesh.}} | ||
{{FuncSyntax|SetPlayerOutline(player [, bEnable])}} | {{FuncSyntax|SetPlayerOutline(player [, bEnable])}} | ||
{{FuncParameters}} | {{FuncParameters}} | ||
{{FuncParam|player | | {{FuncParam|player|The player identifier.}} | ||
{{FuncParamOptional|bEnable| | {{FuncParamOptional|bEnable|'''true''' to enable, default: '''true'''}} | ||
{{FuncReturnValue| | {{FuncReturnValue|Returns '''true''' on success.}} | ||
== Example == | == Example == | ||
<syntaxhighlight lang="Lua"> | |||
AddEvent("OnPlayerSpawn", function(player) | |||
SetPlayerOutline(player, true) | |||
Delay(10000, function(player) | |||
SetPlayerOutline(player, false) | |||
end) | |||
end) | |||
</syntaxhighlight> | |||
{{RelatedFunctions}} | {{RelatedFunctions}} | ||
*[[TogglePlayerTag]] | |||
*[[SetPlayerVoiceTone]] | |||
*[[GetPlayerActor]] | |||
*[[GetPlayerId]] | |||
*[[SetPlayerPropertyValue]] | |||
*[[GetPlayerPropertyValue]] | |||
*[[SetPlayerRotationRate]] | |||
*[[GetPlayerRotationRate]] | |||
*[[GetPlayerWeapon]] | |||
*[[GetWeaponType]] | |||
*[[GetPlayerWeaponMuzzleLocation]] | |||
*[[GetPlayerBoneNames]] | |||
*[[GetPlayerSkeletalMeshComponent]] | |||
*[[GetAllPlayersInSphere]] | |||
*[[GetAllPlayersInBox]] | |||
*[[GetTerrainHeight]] | |||
*[[EnableFirstPersonCamera]] | |||
*[[IsFirstPersonCamera]] | |||
*[[SetNearClipPlane]] | |||
*[[SetControllerOrientedMovement]] | |||
*[[IsValidPlayer]] | |||
*[[GetPlayerName]] | |||
*[[GetStreamedPlayers]] | |||
*[[GetPlayerLocation]] | |||
*[[GetPlayerHeading]] | |||
*[[IsPlayerTalking]] | |||
*[[GetPlayerHealth]] | |||
*[[GetPlayerArmor]] | |||
*[[GetPlayerMovementMode]] | |||
*[[GetPlayerMovementSpeed]] | |||
*[[IsPlayerAiming]] | |||
*[[IsPlayerReloading]] | |||
*[[IsPlayerDead]] | |||
*[[GetPlayerBoneLocation]] | |||
*[[SetPlayerOutline]] | |||
*[[SetPlayerClothingPreset]] | |||
*[[GetPlayerVehicle]] | |||
*[[IsPlayerInVehicle]] | |||
*[[GetPlayerEquippedWeaponSlot]] | |||
*[[GetPlayerForwardVector]] | |||
*[[GetPlayerRightVector]] | |||
*[[GetPlayerUpVector]] | |||
*[[GetVehicleActor]] | |||
*[[SetPlayerLipMovement]] | |||
*[[IsPlayerPlayingAnimation]] | |||
*[[GetPlayerCount]] | |||
*[[CancelAimImmediately]] |
Latest revision as of 11:31, 1 September 2020
Description
Creates an outline around the player mesh.
Syntax
SetPlayerOutline(player [, bEnable])
Parameters
- player
The player identifier. - bEnable (optional)
true to enable, default: true
Return Value
- Returns true on success.
Example
AddEvent("OnPlayerSpawn", function(player)
SetPlayerOutline(player, true)
Delay(10000, function(player)
SetPlayerOutline(player, false)
end)
end)
See also
- TogglePlayerTag
- SetPlayerVoiceTone
- GetPlayerActor
- GetPlayerId
- SetPlayerPropertyValue
- GetPlayerPropertyValue
- SetPlayerRotationRate
- GetPlayerRotationRate
- GetPlayerWeapon
- GetWeaponType
- GetPlayerWeaponMuzzleLocation
- GetPlayerBoneNames
- GetPlayerSkeletalMeshComponent
- GetAllPlayersInSphere
- GetAllPlayersInBox
- GetTerrainHeight
- EnableFirstPersonCamera
- IsFirstPersonCamera
- SetNearClipPlane
- SetControllerOrientedMovement
- IsValidPlayer
- GetPlayerName
- GetStreamedPlayers
- GetPlayerLocation
- GetPlayerHeading
- IsPlayerTalking
- GetPlayerHealth
- GetPlayerArmor
- GetPlayerMovementMode
- GetPlayerMovementSpeed
- IsPlayerAiming
- IsPlayerReloading
- IsPlayerDead
- GetPlayerBoneLocation
- SetPlayerOutline
- SetPlayerClothingPreset
- GetPlayerVehicle
- IsPlayerInVehicle
- GetPlayerEquippedWeaponSlot
- GetPlayerForwardVector
- GetPlayerRightVector
- GetPlayerUpVector
- GetVehicleActor
- SetPlayerLipMovement
- IsPlayerPlayingAnimation
- GetPlayerCount
- CancelAimImmediately