Reverend80 Posted November 27, 2009 Share Posted November 27, 2009 I was wondering if anyone has figured out how to set a map pin's Initial State from Not Active to Active via a script? I am trying to have a quest giver uncover the location on the map when the player accepts the quest. I cant find an example anywhere, online or in any toolset included scripts, so I am trying to stab in the dark at this myself. Here is what I assume is how the basic script should go, please someone correct me if you know how it is done. void main(){ object oMapPin = GetObjectByTag("map_pin_tag") if (Initial State(oMapPin)) = Not Active SetMapPinState (object oMapPin, int nEnable) } When trying to compile the script it returns an error on the "if (Initial State(oMapPin)) = Not Active" line - Parsing Variable List I am guessing I just dont have the right syntax here. The settings for the map pins initial state arent in a variable list, it is in its own field "Initial State" with the options being "INVALID", "INACTIVE", "ACTIVE", "GRAYED OUT", "UNLOCKED CONTENT", "COMPLETED", and "DESTROYED". I'm hoping someone has this sorted out already. Link to comment Share on other sites More sharing options...
Recommended Posts