Howdy all. Tanelorn here with another brain twister for ya.
I am using tons of encapsulated scripts in my mod, since there are so many special behaviors for all my units.
Well wouldn't you know it, the time has come for me to need more than one script to be run at unit initialization.
Rather than have TONS of scripts in my scripts folder that are solely designed to be run for a particular unit, I am trying to keep all the hassle in the config file and shovel it out from there. It's a great idea, in fact, it looks darn near perfect.
My problem: I have no idea how to do it! I'm running into syntax errors left and right when I try to cram two script calls in one event handler.
Any ideas? I've tried tons of combinations. I'll bet there's one that will work if we put our heads together.
Heres a sample of a non-working config snippet:
// this event handler allows the vehicle to continuously regenerate it's ammunition
class eventhandlers
*** *** {
*** *** *** *** ***init =
*** *** *** *** ***{
*** *** *** *** *** *** *** [_this select 0, "TA_VTOL_EMG"] exec "\ta_units\scripts\reload_freegun.sqs" ;
*** *** *** *** *** *** *** [_this select 0, "TA_EMG_Gun"] exec "\ta_units\scripts\reload_freegun.sqs" ;
*** *** *** *** ***};
*** *** };
HOME 
Reply With Quote

