How can I call the FHQTT commands correctly when I use it in conjunction with public variables?
Here's what I have as a hostage rescue, works on local, but not dedicated (ArmA3)
Hostage init:
this disableAI "Move"; hostageAct = this addAction ["<t color='#FFAA00'>Rescue hostage</t>",{publicVariable "hostageRescued"; hostageRescued = true; publicVariableServer "hostageRescuedServer"; hostageRescuedServer = true;},nil,1,true,true,"","_target distance _this < 3"];
trigger #1:
Cond: hostageRescued
Act: hostage enableAI "move"; hostage removeAction hostageAct; [hostage] joinSilent grp1
trigger #2:
Cond: hostageRescuedServer
Act: ["task01", "Succeeded"] call FHQ_TT_setTaskState;
Initially I had the setTaskState command in trigger #1 and it didn't work, but I read the script documentation and it says the commands can only be called on the server, still doesn't work. Also tried with "hostageRescued AND isServer" as condition.
Here's what I have as a hostage rescue, works on local, but not dedicated (ArmA3)
Hostage init:
this disableAI "Move"; hostageAct = this addAction ["<t color='#FFAA00'>Rescue hostage</t>",{publicVariable "hostageRescued"; hostageRescued = true; publicVariableServer "hostageRescuedServer"; hostageRescuedServer = true;},nil,1,true,true,"","_target distance _this < 3"];
trigger #1:
Cond: hostageRescued
Act: hostage enableAI "move"; hostage removeAction hostageAct; [hostage] joinSilent grp1
trigger #2:
Cond: hostageRescuedServer
Act: ["task01", "Succeeded"] call FHQ_TT_setTaskState;
Initially I had the setTaskState command in trigger #1 and it didn't work, but I read the script documentation and it says the commands can only be called on the server, still doesn't work. Also tried with "hostageRescued AND isServer" as condition.