OFPEC Forum
Editors Depot - Mission Editing and Scripting => Arma2 - Editing/Scripting General => Topic started by: Doolittle on 27 Aug 2009, 01:21:04
-
Is it possible to create a "global" #define in a mission? I.e. in init.sqf I have:
#define foo hint
In every other script that runs, I'd like to use foo and have it rep. hint. Is this possible? Thanks!
-
You can try
// init.sqf
#define MyHint(X) (hint X)
MyHint ("Hello");
-
It's only possible to put all macros in one file, then include the file everywhere it is required.
-
That's what I feared... okay, thanks guys. I was hoping to do:
#define debugLog localize
..so I could get feedback from BIS modules. >:(
-
well why not unpacked the modules.pbo, mass search and replace, and repack?!