RustTip

player.markhostile

commandserver

Marks the calling player as hostile immediately, triggering the hostile timer as if they had attacked another player; useful for testing hostile-state dependent behaviour(description generated by Facepunch)

Quick info

Runs on
server
Class
ConVar.Player

Example

player.markhostile

In other branches

public
unchanged
aux02
unchanged