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

aux02
unchanged
staging
unchanged