OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: FFAK on 08 Jan 2003, 10:17:25

Title: Scan script disable by host?
Post by: FFAK on 08 Jan 2003, 10:17:25
I've got a problem :)
here is my scan script
Code: [Select]

#scan
~0.1
if ((player == ap1) and (ap1 hasweapon "sebprc25")) then {showmap true;} else {showmap false;}
if ((player == ap2) and (ap2 hasweapon "sebprc25")) then {showmap true;} else {showmap false;}
~10
goto "scan"
I tested it on multiplayer and its work fine... for player ap2 but not for player ap1 when ap1 is the host
I don't know why it's not working for the host....any suggestion?
(I didn't try on a dedicated server)
Title: Re:Scan script disable by host?
Post by: Tomcat_CDM on 11 Jan 2003, 19:29:50
? (!local server): exit

This will prevent to run the sqs on local machines, it will ran only on servers. Maybe this will help you or maybe you need to change it to provet runing on server instead of local.