Jump to content

Przemek_kondor

Member
  • Content Count

    510
  • Joined

  • Last visited

  • Medals

Everything posted by Przemek_kondor

  1. Przemek_kondor

    Activating Variables when JIP

    init.sqf <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE"> ... var1 = .. var2 = .. ... varN = .. synchroVariables = true; PublicVariable "synchroVariables"; ... create a trigger (repeating) activated by synchroVariables on activation write <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">ptr = [] execVM "synchro.sqf" create a logical element named for example log_server create script: synchro.sqf <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE"> if(local log_server) then {//server PublicVariable "var1" PublicVariable "var2" .... PublicVariable "varN" synchroVariables = false; PublicVariable "synchroVariables"; }; if (true) exitWith {};
  2. Przemek_kondor

    MFCTI Beta Download

    so if it are public variables, that should be send all, i think
  3. i build mission in which i have several scripts sqf. most of them are exec many times in mission but about 1per minute. what is better (faster|more memory friendly)? -compile every scripts on mission beginning and keep pointers or compile every time when scipt is executed? (scripts have about 30 - 50 lines)
  4. Przemek_kondor

    keep pointers or compile everytime ?

    after compilation "assebly"-code is loaded to RAM and sits there to end mission? so->multi-compilations of this same script unnecessary take RAM?
  5. hi. in my mission folder i have 2 subfolders: \missions and \scripts. in \mission subfolder i have script in which I wrote: <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE"> [_places, _times, _view_distances] execVM "..\scripts\set_intel.sqf"; coz i want to exec other script which is in \scripts subfolder but ".." doesn't work. so how to get addres of upper folder?
×