Jump to content
🛡️FORUMS ARE IN READ-ONLY MODE Read more... ×
Sign in to follow this  
peacefull Nation

execute code server side

Recommended Posts

so i create a folder in game directory called scripts

 

arma3/scripts

inside the script i will put test.sqf.

 

how how do i execute that file using execvm.

 

_handle = execVM "C:\Gamess\Arma 3 Laws of War\test.sqf";

 

wil it work like that

Share this post


Link to post
Share on other sites

As far as you can use relative path, it's MP friendly:

_handle = [] execVM "SubFolder\test.sqf"

Share this post


Link to post
Share on other sites

this is what i have

["fn_aikarate.sqf","BIS_fnc_execVM",true,false] spawn BIS_fnc_MP;

 

and i have  fn_aikarate.sqf in root of the game directory.

when i click on the option all enemy karate  it only effects enemies that are near me and not globally ?

so if enemey ai is close to me then it works ,  normally it should affect all enemy ai in map.

 

 

also when i click the button it says fn_aikarate.sqf not found but the code below works cause i se enemy ai do karate but not globally , when i say globally i mean all the enemy in map dont get affected only the ones that are near me

inside fn_aikarate.sqf

 {
        if(!isPlayer _x && side _x != playerSide) then {
_x playMove "AmovPercMstpSnonWnonDnon_exerciseKata";
        }
    }forEach allUnits;
["root"] spawn BIS_fnc_guiMessage;

this is the code that gets executed how ever the  message root does not get triggered  so maybe something is going wrong here.

 

all these only works on my own dedicated arma3server.exe  how come when i join my friends host it dont work

Share this post


Link to post
Share on other sites
[] execVM "\server\scripts\test.sqf";

Server root folder(s):

server

>

scripts

>

test.sqf

Share this post


Link to post
Share on other sites

How is your dedicated server supposed to know what his playerSide is?

 

There is no player on a dedicated.

Share this post


Link to post
Share on other sites
Sign in to follow this  

×