Skip to content

Commit

Permalink
Update gml-functions.md
Browse files Browse the repository at this point in the history
  • Loading branch information
JujuAdams committed Aug 18, 2024
1 parent 99a76b6 commit 2aad133
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docs/4.0/gml-functions.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,18 +90,20 @@ Because data is being stored in a script and *not* instead a function, the code

There are many limitations to what can be done with Dynamo and scripts. This GML parser is very stripped back and supports a small subset of GML. The parser supports:
- Setting global variables
- Reading native GM constants/global variables
- Creating struct / array literals (JSON)
- Most GML operators, including ternaries (`condition? valueIfTrue : valueIfFalse`)
- Executing functions
- Instantiating constructors (with `new`)
- Executing native GM functions

The parser does not support:
- if/else, while, etc. flow control
- Function and constructor definition
- Dot notation for variable access in structs/instances
- Square bracket notation for array value access

Tokens for macros, GML constants, assets etc. can be added by calling `DynamoScriptEnvSetToken()` and `DynamoScriptEnvSetTokenFunction()`. Please see those functions for more information.
Custom tokens can be added by calling `DynamoScriptEnvSetToken()` and `DynamoScriptEnvSetTokenFunction()`. Please see those functions for more information.

!> All assets will be available for reference in the GML parser. As this represents a substantial security weakness, be sure to disable Dynamo for production builds by setting the configuration macro `DYNAMO_ENABLED` to `false`.

Expand Down

0 comments on commit 2aad133

Please sign in to comment.