hscript calls (kinda?? horrible method tho)

This commit is contained in:
WizardMantis441
2023-05-20 01:33:22 -05:00
parent 1c3bcdc4a4
commit d430b645f0
2 changed files with 6 additions and 6 deletions
@@ -14,14 +14,14 @@ class CharterEvent extends UISliceSprite {
name: "HScript Call",
params: [
{
name: "Function name",
name: "Function Name",
type: TString,
defValue: "myFunc"
},
{
name: "Function parameters (string)",
type: TArrayOfString,
defValue: []
name: "Function Parameters (String split with commas)",
type: TString,
defValue: ""
}
]
}
+2 -2
View File
@@ -1172,8 +1172,8 @@ class PlayState extends MusicBeatState
switch(event.type) {
case CUSTOM:
if (event.params[0] is String && event.params[1] is Array) {
scripts.call(event.params[0], event.params[1]);
if (event.params[0] is String && event.params[1] is String) {
scripts.call(event.params[0], event.params[1].split(','));
}
case CAM_MOVEMENT:
if (event.params[0] is Int)