Skip to content

Instance Variables

firstBloodCalled

Type

Bool

Initial Value

false

Description

globals

Type

Dynamic

Initial Value

n/a

Description

overtimeCount

Type

Int

Initial Value

0

Description

Instance Functions

addEventListener(type:Int, func:Listener, options?:EventListenerOptions):Void

Description

addTimer(interval:Int, repeats:Int, func, options?:IntervalTimerOptions):Int

Description

checkFirstBlood(foe:Character):Bool

Description

Check if a valid first blood

checkTwoPlayersLastLife():Bool

Description

Check if last 2 players and at their final stock

createCustomApiObject(customApiObjectContent:String, owner?:ApiObject):CustomApiObject

Description

createCustomGameObject(customGameObjectContent:String, owner?:GameObject):GameObject

Description

createLineSegmentStructure(points:Array<Float>, stats?:StructureStats):CustomLineSegmentStructure

Description

createProjectile(projectileContent:String, owner?:GameObject):Projectile

Description

createRibbonTrail(sprite:Sprite, segments:Int, singleAnchor:Bool):RibbonTrail

Description

createShockwaveEffect(eventData:IShockwaveEffectEventData):Void

Description

createSpriteStructure(sprite:Sprite):Structure

Description

createStructure(structureContent:String):Structure

Description

createVfx(vfxStats:VfxStats, owner?:GameObject):Vfx

Description

freezeScreen(duration:Int, allowList:Array<GameObject>):Void

Description

Freezes the screen, including all game objects Parameters:

  • duration - Length of the freeze
  • allowList - Entities that will be allowed to update

getCamera():Camera

Description

getCharacters():Array<Character>

Description

getCollisionAreaByName(name:String):CollisionArea

Description

getCollisionAreas():Array<CollisionArea>

Description

getCustomGameObjects():Array<CustomGameObject>

Description

getElapsedFrames():Int

Description

Returns the amount of frames that have elapsed since the match started.

getMatchSettingsConfig():MatchSettingsConfig

Description

getPlayers():Array<Character>

Description

getProjectiles():Array<Projectile>

Description

getStructureByName(name:String):Structure

Description

getStructures():Array<Structure>

Description

getTimeLeft():Int

Description

Returns time (in frames) left in the match

hasEventListener(type:Int, func?:Listener):Bool

Description

isDisposed():Bool

Description

isReplay():Bool

Description

removeEventListener(type:Int, func:Listener):Void

Description

removeTimer(uid:Int):Bool

Description

spawnKOBlast(owner:GameObject):Vfx

Description