Repository navigation
Lua Script API: Reflection Functions
Warning: WIP STILL RESEARCHING!!!!!!!
Sets the current property variable inside the Playstate with a new value.
-
variable- The variable inside the Playstate or object to be used. -
value- The new value for thevariableparameter to be set. -
allowMaps- (Still researching)
Sets the current property variable inside a class other than Playstate with a new value.
-
classVar- The name of the class; Example:ClientPrefs,Conductor,CoolUtil, etc. -
variable- The variable inside the Playstate or object to be used. -
value- The new value for thevariableparameter to be set. -
allowMaps- (Still researching)
setPropertyFromGroup(obj:String, index:Int, variable:Dynamic, value:Dynamic, ?allowMaps:Bool = false)
Sets the current property variable inside an array/group member inside the PlayState with a new value.
-
obj- The name of the array/group member; Example:opponentStrums,playerStrums, etc. -
index- The index number of the array/group member to be referenced. -
variable- The variable to be used for the array/group member. -
value- The new value for thevariableparameter to be set. -
allowMaps- (Still researching)
Gets the current property variable inside the Playstate current value.
-
variable- The variable inside the Playstate or object to be used. -
allowMaps- (Still researching)
Gets the current property variable inside a class other than Playstate current value.
-
classVar- The name of the class; Example:ClientPrefs,Conductor,CoolUtil, etc. -
variable- The variable inside the Playstate or object to be used. -
allowMaps- (Still researching)
Gets the current property variable inside an array/group member inside the PlayState current value.
-
obj- The name of the array/group member; Example:opponentStrums,playerStrums, etc. -
index- The index number of the array/group member to be referenced. -
variable- The variable to be used for the array/group member. -
allowMaps- (Still researching)
Calls a function from the Playstate class.
-
funcToRun- An optional parameter, The function name from the Playstate to be referenced. -
args- An optional parameter, The arguement(s) to be passed to the function.
Calls a function from other classes.
-
className- The name of the class; Example:ClientPrefs,Conductor,CoolUtil, etc. -
funcToRun- An optional parameter, The function name from the classes to be referenced. -
args- An optional parameter, The arguement(s) to be passed to the function.
Removes a specific note type inside the game.
-
obj- The name of the array/group member, ExampleopponentStrums,playerStrums, etc. -
index- The index number of the array/group member to be referenced. -
dontDestroy- An optional parameter, Whether if the note type will be removed permanently making it unable to be re-added; Default isfalse.
Updates the specific note type hitboxes.
-
obj- The name of the array/group member, ExampleopponentStrums,playerStrums, etc. -
index- The index number of the array/group member to be referenced.
-
.x- The x position value of the object. (Float) -
.y- The y position value of the object. (Float) -
.width- The width size value of the object. (Float) -
.height- The height size value of the object. (Float) -
.alpha- The alpha/opacity value of the object; Goes from0to1. (Float) -
.angle- The angle value of the object. (Float) -
.color- The hex color of the object. (String) -
.length- The length value of an array. (Array) -
.visible- Whether the object is visible or not. (Boolean) -
.stunned- Will disable the idle animation and key pressing. (Boolean) -
.antialiasing- Whether the border of an object will be smooth or not, this will affect performance. (Boolean) -
.flipX- Flips the object on the x axis. (Boolean) -
.flipY- Flips the object on the y axis. (Boolean) -
.scale.x- The scale at the x axis value of an object, The hitbox is not automatically update. (Float) -
.scale.y- The scale at the y axis value of an object, The hitbox is not automatically update. (Float) -
.offset.x- The x offset value of the object. (Float) -
.offset.y- The y offset value of the object. (Float) -
.scrollFactor.x- The scroll factor at the x value of the object. (Float) -
.scrollFactor.y- The scroll factor at the y value of the object. (Float)
-
noAnimation- Disable any singing animation when hitting a note. (Boolean) -
noMissAnimation- Disable any singing animation when missing/missinput a note. (Boolean) -
hitCausesMiss- Enables misses when hitting a note. (Boolean) -
hitByOpponent- Whether the opponent can hit the note or not. (Boolean) -
hitsoundDisabled- Whether the hitsound is disable or not. (Boolean) -
hitsound- The hitsound's sound to be used. (String) -
hitHealth- The specified amount of hit health when hitting a note; Defualt value:0.023. (Float) -
missHealth- The specified amount of miss health when missing/missinput a note; Defualt value:0.0475. (Float) -
mustPress- Checks if the opponent or player can hit a note, I think. (Boolean) -
ignoreNote- Whether the note should be ignore or not. (Boolean) -
isSustainNote- Checks if the note is long. (Boolean) -
texture- The note's texture to be used. (String) -
noteType- Checks the current note type. (String) -
noteWasHit- Checks if the note was hit, duh. (Boolean) -
copyX- Checks if the note strums are included when changing the x position of the note. (Boolean) -
copyY- Checks if the note strums are included when changing the y position of the note. (Boolean) -
copyAngle- Checks if the note strums are included when changing the angle value of the note. (Boolean) -
copyAlpha- Checks if the note strums are included when changing the alpha/opacity value of the note. (Boolean) -
noteSplashData.disabled- Whether the note splashes be disable or not. (Boolean) -
noteSplashData.texture- The note splashes texture to be used. (String) -
noteSplashData.useGlobalShader- If set totrue, the custom note will use the note's defualt splash colors. (Boolean) -
noteSplashData.r- The note splashes red value; Defualt value:-1. (Int) -
noteSplashData.g- The note splashes green value; Defualt value:-1. (Int) -
noteSplashData.b- The note splashes blue value; Defualt value:-1. (Int) -
noteSplashData.a- The note splashes alpha/opacity value; Defualt value:0.6. (Float)
Depracated Group Properties:
-
noteSplashDisabled- Whether the note splashes be disable or not. (Boolean) -
noteSplashTexture- The note splashes texture to be used. (String) -
noteSplashHue- Changes the HUE value of the note; Goes from-180to180; Default value:0. (Int) -
noteSplashBrt- Changes the brightness value of the note; Goes from-100to100; Default value:0. (Int) -
noteSplashSat- Changes the saturation value of the note; Goes from-100to100; Default value:0. (Int)
-
notes- Notes that are currenlty spawned. -
unspawnNotes- Notes that are not spawned inside the game. -
eventNotes- Self explanatory. -
playerStrums- Notes from the Player strums. -
opponentStrums- Notes from the Opponent strums. -
strumLineNotes- Notes from both Player & Opponent strums.
Is the page in some way inaccurate? an error, a typo, or outdated data? To report it, use the "Issue Tab". Or do you wish to include a new function or add new information? use the "Pull Request Tab". Help is always appreciated!
- Event Callbacks
- Custom Sprite
- Custom Text
- Object Functions
- General Functions
- Scripting & File Functions
- Game Input Control Functions
- Language Translation
- HScript Functions
- Custom Substates
- Custom Shaders
- Deprecated & Removed Functions
- Sound & Music Functions
- Tweens & Timers Functions
- Reflection Functions
- Variables