06-28-2012, 03:23 AM
I like having my pathfinding code in a seperate file,
BUT the pathfinding code has to use an array from main.bas
I get error message saying
identifier 'UnitExists' is a function, not a var
but really its an array
I could put Dim UnitExists in the pathfinding.bas file
but what if another included file needs to reference UnitExists?
UnitExists needs to be 'global' somehow
BUT the pathfinding code has to use an array from main.bas
I get error message saying
identifier 'UnitExists' is a function, not a var
but really its an array
I could put Dim UnitExists in the pathfinding.bas file
but what if another included file needs to reference UnitExists?
UnitExists needs to be 'global' somehow