This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Next revisionBoth sides next revision | ||
namedscripts [2016/05/07 18:48] – korshun | namedscripts [2016/05/07 18:50] – korshun | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Named scripts in Zandronum ====== | ====== Named scripts in Zandronum ====== | ||
- | Zandronum does **not** support actual named scripts, but you can use #define to give names to script number. | + | Zandronum does **not** support actual named scripts, but you can use #define to give names to script number: |
< | < | ||
Line 17: | Line 17: | ||
} | } | ||
</ | </ | ||
+ | |||
+ | You can even use these script names in decorate if you define them as decorate constants: | ||
+ | |||
+ | < | ||
+ | const int myproject_somescript = 301; | ||
+ | const int myproject_enter 302; | ||
+ | </ | ||
+ | |||
+ | And then in some actor' | ||
+ | < | ||
+ | TNT1 A 0 ACS_ExecuteAlways(myproject_somescript, | ||
+ | </ | ||
+ | |||
+ |