There is some stuff (like a hallucination for a medical mod) where you cant have a unit being global ...
VBS2 has -> https://resources.bisimulations.com/w/index.php?title=createUnitLocal
ArmA3 does not -> https://community.bistudio.com/wiki/createUnitLocal
((and yes ... i know VBS2 is developed by BISimulations and not BI ... its just an example that the code about how to do so should not be further away then one single phone call ...))