script

Game logic: a JavaScript file from the project's Scripts folder, run while the game plays.

In scene text

script { file "…"  also ["a", "b"]  params ["a", "b"] }

Add it in the Inspector (Add Component), in scene text as above, or ask your AI. Fields you leave out keep their defaults.

Fields 3

FieldTypeUnit / rangeWhat it does
filetext—Path inside Scripts, e.g. "door.js". Write scripts with write_script.
alsolist of text—More scripts on the same object, e.g. ["kits/health.js"]. All get the same events and params.
paramslist of text—Settings the script reads as self.params, written as "name=value" (e.g. ["speed=4", "target=Exit"]).
Arcwright Beta 2 (0.4.0) · generated from the engine source (25e375c86)Something wrong or missing? Tell us
Download Arcwright free