Jump to content
Sign in to follow this  
best2nd

onMapClick can't execute scripts

Recommended Posts

Hello I'm new here, however that won't stop me from making this post.

My problem is that onMapClick command does not support execVM command :mad:, is there any other way to execute an .sqf script when you click on map.

Share this post


Link to post
Share on other sites
Hello I'm new here, however that won't stop me from making this post.

My problem is that onMapClick command does not support execVM command :mad:, is there any other way to execute an .sqf script when you click on map.

You sure?

onMapSingleClick { [] execVM "somescript.sqf" };

_neo_

Share this post


Link to post
Share on other sites

What??? I swear I saw " instead of { on BIC. Thx for your help, I can't belive I failed. That is the reason I hate coding.

Share this post


Link to post
Share on other sites
What??? I swear I saw " instead of { on BIC. Thx for your help, I can't belive I failed. That is the reason I hate coding.

What you saw is also correct:

onMapSingleClick " [] execVM 'somescript.sqf' ";

_neo_

Share this post


Link to post
Share on other sites

' is the same as ""

...or...

A single quote is the same as double quotes.

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
Sign in to follow this  

×