hscript calls (kinda?? horrible method tho)
This commit is contained in:
@@ -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: ""
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user