-
Notifications
You must be signed in to change notification settings - Fork 2
Home
Jasdac edited this page Dec 15, 2020
·
9 revisions
Welcome to the ObstacleScript wiki!
| Command | Arguments | Description |
|---|---|---|
| SAVE | (str)group="" | Saves spawned assets to the level DB. You can specify a group if you want to spawn a set of specific meshes by label. Otherwise ignore the group to spawn them when the level starts |
| TRUNCATE ALL | n/a | Purges the entire DB, removing all spawns from your level. Make sure to take a backup before doing this. |
| CLOSE | n/a | Despawns any spawned assets |
| LIST | n/a | Outputs a list of the spawn table, with indexes for each spawn. Important: When you delete an asset from the list, the indexes will change. Always list the assets before deleting or modifying one. |
| DELETE | (int)idx | Deletes a single item by index |
| SETGROUP | (int)idx, (str)group | Changes the spawn group for an item by index. |
| SETDESC | (int)idx, (str)desc | Changes the saved description for an item by index. |
| LOAD | (str)group="" | Spawns an asset group as dummies. |
| LIVE | (str)group="" | Same as above, but spawns as live. |
| SPAWN | (int)idx1, (int)idx2... | Spawn one or multiple assets by index as live. |
| TEST | (int)idx1, (int)idx2... | Spawn one or multiple assets by index as dummies. |
You can save descriptions on assets by adding a $ as the first character of the description when loading. This description will be put back on the asset when it loads (excluding the $ if loaded live). Useful for giving multiple configurations to a single object type. For an example, the trigger uses the description for config: [(vec)scale, (str)id, (int)flags].