New at scripting, and this one has me pulling my hair out, so here's my dilemma:
I want to only give the group leaders in my mission access to the map item, and have it so that when other players are near one of these leaders they can access the map, but make it so that when they leave the proximity of the leader, the map disappears again, to simulate the players going to the leader and looking at their map. Now I'm not sure which way to do this, whether I need to make a detection script using inArea or if I can attach triggers to the leaders that will do
unitname removeweapon "itemmap"
unitname addweapon "itemmap"
I also saw the "leader" command on BI wiki, and was wondering if it could be used to automatically assign the units?
Any help would be greatly appreciated!