Psych Engine Logo
Psych Engine - Lua Script API

Score Functions

Functions made for creating Custom HUDs.


addScore

addScore(value:Int):Void

Adds to the Score.


setScore

setScore(value:Int):Void

Sets the Score.


addMisses

addMisses(value:Int):Void

Adds to the Misses.


setMisses

setMisses(value:Int):Void

Sets the Misses.


addHits

addHits(value:Int):Void

Adds to the Hits.


setHits

setHits(value:Int):Void

Sets the Hits.


getHealth

Usage: getHealth()

Returns current health, max of 2 (Which is 100% health).


addHealth

addHealth(value:Float):Void

Adds health.


setHealth

setHealth(?value:Float = 1):Void

Sets health.


setRatingPercent

setRatingPercent(value:Float):Void

Changes Rating Percentage.

Note: For optimization sake, you have to call updateScoreText() after changing it.


setRatingName

setRatingName(value:String):Void

Changes Rating Name (Good, Meh, Shit, etc.)

Note: For optimization sake, you have to call updateScoreText() after changing it.


setRatingFC

setRatingFC(value:String):Void

Changes Rating FC (Clear, SDCB, FC, GFC, SFC).

Note: For optimization sake, you have to call updateScoreText() after changing it.


updateScoreText

Usage: updateScoreText()

Updates displayed score text.