before i get too far into this immensely massive script project that i'm starting, i want to make sure i understand a few things about external scripts.
mainly, if i have an external script and its listed in the #include stuff,
could i have in it Event (“buildingTriggered”, “5”) and have it work when the building is triggered?
or would i have to have the event in the main script and use a 'CustomEvent( “external script” )' command to access the external script?
also, do the external scripts have to be .mts files as well? and do they need to be in a certain folder?
using external script files
i spent some time talking to wes and looking around on the forums here and found:.
mainly, if i have an external script and its listed in the #include stuff,
could i have in it Event (“buildingTriggered”, “5”) and have it work when the building is triggered?
yes, it should work
also, do the external scripts have to be .mts files as well? and do they need to be in a certain folder?
correct extension is .mit according to a version release topic of yours from last year and they can go in a 'scripts' folder.
although, it seems that having a single .mts file in the data folder works still too.
have yet to test any of the above though.
mainly, if i have an external script and its listed in the #include stuff,
could i have in it Event (“buildingTriggered”, “5”) and have it work when the building is triggered?
yes, it should work
also, do the external scripts have to be .mts files as well? and do they need to be in a certain folder?
correct extension is .mit according to a version release topic of yours from last year and they can go in a 'scripts' folder.
although, it seems that having a single .mts file in the data folder works still too.
have yet to test any of the above though.