Jump to content
Sign in to follow this  
DOA

Can you disable a script if a client is regular?

Recommended Posts

I hope this is not a duplicate question. I may not be searching with correct terms.

Is it possible to only run a script if the client is in veteran mode?

An example would be a unit tracker sqs or movemarker script. In regular mode units are tracked automatically on the map. This makes a unit tracker script, used in regular mode, cause two markers for the tracked units.

My goal is to have a unit tracker sqs run only when my missions are played in veteran mode.

Thanks.

Share this post


Link to post
Share on other sites

Add at the beginning of your script

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">if (cadetmode) exitwith {};

Share this post


Link to post
Share on other sites

Thank you all very much for helping me with this.

My issue was resolved by adding the code, provided by RAV_Raven, to the begining of the tracker.sqf. I'm using tracker.sqf to provide a sort of blue force tracking system on the map which is needed when the mission is played in Veteran mode also. In regular (Cadet) mode this duplicated the units tracking markers. Thanks again...DOA

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  

×