This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
namedscripts [2016/05/07 18:48] – korshun | namedscripts [2018/02/19 12:52] (current) – 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 | + | <note warning> |
+ | |||
+ | Zandronum < | ||
< | < | ||
Line 17: | Line 19: | ||
} | } | ||
</ | </ | ||
+ | |||
+ | 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 use them in some actor' | ||
+ | < | ||
+ | TNT1 A 0 ACS_ExecuteAlways(myproject_somescript, | ||
+ | </ | ||
+ | |||
+ |