JSAbility

From Virtual World Web Wiki
Jump to: navigation, search
  • Inherits class: JSAbilityBase
  • This is a JavaScript visible object

Remarks [edit]

Properties

bool Active {get; set;}
Returns whether the AbilityEntry is activated. Can be set if it's a JS-created ability
float Cooldown {get; set;}
Returns the Cooldown for the AbilityEntry (in seconds). Can be set if it's a JS-created ability
float CooldownProgress {get;}
Returns how a percentage for how far through the cooldown process this AbilityEntry is: 0 for just activated, 1 for completed
bool Denied {get; set;}
Returns whether the AbilityEntry is denied in the hierarchy. Can be set if it's a JS-created ability
bool Enabled {get; set;}
Returns whether the AbilityEntry is enabled in the hierarchy. Can be set if it's a JS-created ability

Events

OnUpdate()
Event fired when receiving new changes to the AbilityEntry

Methods

bool Activate(JSDOMObject domObject = NULL)
Trigger this Ability, optionally with a target object for character-world interaction abilities