OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting Multiplayer => Topic started by: duckwilliamson on 02 Sep 2003, 00:57:01

Title: lockwp problem ...
Post by: duckwilliamson on 02 Sep 2003, 00:57:01
I have a problem which I don't know the origin of ...
My problem is the lockwp command and it not working on a specific map ...

I've tested the command on another map where I just have me and a few wp's that are locked ... This worked fine
I checked out all the addons I use (threw them on the other map) and there was no problem
I took a scan through all the sqs and sqm files searching for lockwp commands (and locked) -- every lockwp i found was "player lockwp true" then a condition then "player lockwp false"
I figured there could be a wrong somewhere in a script that i looked over so i added a "player lockwp true" to the very first wp that runs and it didn't work ... (for some reason it worked on 1 of five tries i made ... i repeated the exact same thing for another trial and it didn't work)

So if anyone can help me or give suggestions on debugging or if anyone has had lockwp problems before please reply ...
Your help is greatly appreciated -- thx in advance.
Title: Re:lockwp problem ...
Post by: Killswitch on 15 Sep 2003, 13:46:37
Does changing unit lockWP <true|false> to (group unit) lockWP <true|false> help? I.e, try
Code: [Select]
(group player) lockWP true    and then...  (group player) lockWP false
Title: Re:lockwp problem ...
Post by: duckwilliamson on 19 Sep 2003, 21:05:18
well i don't know what happened ... but it now works ...
i just opened it up again to try out Killswitch's idea ... and it worked before i incorporated it ... ?

so i don't know -- but thx to killswitch and anyone else who bothered to try and help i thank you  ;D