@quenty/scoredactionservice

16.4.0 • Public • Published

ScoredActionService

Scores actions and picks the highest rated one every frame

Installation

npm install @quenty/scoredactionservice --save

Usage

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

Package Sidebar

Install

npm i @quenty/scoredactionservice

Weekly Downloads

313

Version

16.4.0

License

MIT

Unpacked Size

44.7 kB

Total Files

14

Last publish

Collaborators

  • quenty