CarlGustaffa 4 Posted November 12, 2007 Hi How can I use setTriggerStatements where a script is entered in its "on activation" field? I can do one-line stuff, but once I need to use "scriptname.sqf" or something within "", I get into trouble. I've tried using {nil = [] execVM "scriptname.sqf"} (or something similar), but I end up with an error message. How do I make doublequotes within doublequotes? " "test" " Share this post Link to post Share on other sites
fasad 1 Posted November 12, 2007 BI Wiki Article - String Is this what you mean? Share this post Link to post Share on other sites
loyalguard 15 Posted November 12, 2007 Yes, within double quotes. e.g: <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">_trigger setTriggerStatements ["this", "_myaction = player AddAction [""> Hello"",""hello.sqf""]", "player removeAction myaction"] Wherever you would normally have " " you must have "" "". Share this post Link to post Share on other sites
CarlGustaffa 4 Posted November 12, 2007 Ok, thanks, I'll keep it in mind. I'm sure I tried double qoutes, but if the example actually works, I probably made a mistake somewhere else. Share this post Link to post Share on other sites