677 B
677 B
IScriptEntity.unlockRotation
Parça 17/17 · önceki
java.lang.String function, java.lang.Object... args)
Execute for the entity a script with a given script name and arguments.
c.getSubject().executeScript("example_script.js", "func_with_context", c, 1, 2, 3); c.getSubject().executeScript("example_script.js", "func_without_context", 1, 2, 3);
// example_script.js function func_with_context(c, arg1, arg2, arg3) { c.getSubject().send("arg1: " + arg1 + ", arg2: " + arg2 + ", arg3: " + arg3); }
function func_without_context(arg1, arg2, arg3) {