Jump to content
HenPet

Starting scripts with execVM

Recommended Posts

Im trying to Start a script inside the init of a sign but im always geting an error message: Error Type Script, expected String, code

My code looks like this: 

This addAction ["myText" ,execVM "myScript.sqf"];

I saw something about starting scripts like this: nul = [] execvm "myScript" but when I try this im geting: missing ]

 

Please help me and excuse my bad englisch.

 

Share this post


Link to post
Share on other sites

this addAction ["myText" ,{execVM "myScript.sqf"}];

 

or 

 

this addAction ["myText" ,"execVM 'myScript.sqf'"];

  • Like 3
  • Haha 1

Share this post


Link to post
Share on other sites

Nice working perfectly ❤️

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×