Mugsy_nevo 0 Posted January 6, 2019 Hi I've been trying to script so I can change the pylon loadouts of aircrafts by an action on a sign. When I put this addAction ["Blackfoot1", "Blackfoot setPylonLoadOut ["PylonLeft3", "PylonRack_1Rnd_AAA_missiles", true, [0]]"] into the Init field, I get the error message "Init: Missing ]" everytime I click on OK, but I really dont get where its supposed to be missing. Can someone help me please? Share this post Link to post Share on other sites
davidoss 552 Posted January 6, 2019 this addAction ["Blackfoot1", {Blackfoot setPylonLoadOut ["PylonLeft3", "PylonRack_1Rnd_AAA_missiles", true, [0]]}]; you went crazy with apostrophes 2 Share this post Link to post Share on other sites
POLPOX 779 Posted January 6, 2019 Do not use " inside ". There're few ways to make strings, "(double quotation), '(single quotation), ""(twin-double quotation), ''(twin-single quotation), and if you need to make string inside string, use different quote. Like below: this addAction ["Blackfoot1", "Blackfoot setPylonLoadOut ['PylonLeft3', 'PylonRack_1Rnd_AAA_missiles', true, [0]]"] This should work. BTW, I'd use code {} rather than string "" inside addAction as davidoss mentioned already. 2 Share this post Link to post Share on other sites
Mugsy_nevo 0 Posted January 6, 2019 It works perfect now. Thank you very much :) Share this post Link to post Share on other sites