Skip to content

Latest commit

 

History

History
28 lines (22 loc) · 919 Bytes

SQUIRREL.md

File metadata and controls

28 lines (22 loc) · 919 Bytes

Squirrel

Documentation about Squirrel programming language can be found here:

Useful functions for debugging purposes

local victim = EntIndexToHScript(params.entityid)
printl("Name " + victim.GetName())
printl("Health " + victim.GetHealth())
printl("Classname " + victim.GetClassname())
printl("Survivor " + victim.IsSurvivor())
printl("Playername " + victim.GetPlayerName())
printl("Vic is incap : " + victim.IsIncapacitated())
printl("Vic is dying : " + victim.IsDying())
printl("Vic is dead : " + victim.IsDead())

local attacker = GetPlayerFromUserID(params.attacker)
printl(attacker.GetPlayerName())
printl(GetCharacterDisplayName(attacker))