• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

Automatically importing triggers?

Status
Not open for further replies.
Level 15
Joined
Aug 7, 2013
Messages
1,342
Hi,

Is there a script/command I can put in a map which takes a(n) (absolute) path as an argument to search for a Trigger file (.wtg), which it then imports directly into the map?

It would run this command every time I load the map.
 
I dont think this is supported by this way(when map is loading), but you can do

//! import "filepath", which will import the script when you save the map

This will import a trigger file? Will it not overwrite the entire triggers already in the map?

Edit: Also, where does the script go afterward?
 
Last edited:
Status
Not open for further replies.
Back
Top