@quenty/scoredactionservice
v16.48.0
Published
Scores actions and picks the highest rated one every frame
Downloads
647
Maintainers
Readme
ScoredActionService
Scores actions and picks the highest rated one every frame
Installation
npm install @quenty/scoredactionservice --saveUsage
Usage is designed to be simple.
ScoredActionService:Init()
ScoredActionService:GetScoredAction(inputKeyMapList)
ScoredAction API
ScoredAction.new()
ScoredAction:IsPreferred()
ScoredAction:SetScore(score)
Big number is more important. At -math.huge we won't ever set preferred
ScoredAction:GetScore()
ScoredAction:PushPreferred()
ScoredAction.Removing
Signal for when the scored action is getting cleaned up or removed
ScoredAction.PreferredChanged
Signal for when the IsPreferred() value changed
