DarkRP.Player.UnownAll
Jump to navigation
Jump to search
This page refers to DarkRP 2.4.3. This information may be incorrect as of later versions. Check here for a up-to-date list of functions. |
---|
Function | |
Function name | Player:UnownAll() |
Description: | |
Unowns all the player's entities and doors. | |
Returns: | nil |
Part of Library: | Player |
Realm: |
![]() |
BBCode Link: | [b][url=http://wiki.darkrp.com/index.php?title=DarkRP.Player.UnownAll]Player:UnownAll[/url][/b] |
Examples[edit]
Description | Unowns all entities on player's disconnect. |
---|---|
Used on | ![]() |
Code | function pDiscon( ply )
ply:UnownAll()
--Notice: This is just example material, this function is called by DarkRP anyway
end
hook.Add( "PlayerDisconnected", "playerdisconnected", pDiscon )
|
Output | N/A |
Additional Notes[edit]
- All owned doors get unlocked and unowned.
- Most entities remove themselves after the owner has been set to nil.
- Usually called when the player disconnects.