{"name":"lockWP","operator":null,"title":"lockWP","type":"command","url":"https://community.bistudio.com/wiki/lockWP","revid":321186,"updated":"2022-05-13T15:20:16Z","groups":["Waypoints"],"status":"ok","replaced_by":[],"games":[{"game":"ofp","name":"Operation Flashpoint","version":"1.00"},{"game":"ofpe","name":"Operation Flashpoint: Elite","version":"1.00"},{"game":"arma1","name":"Armed Assault","version":"1.00"},{"game":"arma2","name":"Arma 2","version":"1.00"},{"game":"arma2oa","name":"Arma 2: Operation Arrowhead","version":"1.50"},{"game":"tkoh","name":"Take On Helicopters","version":"1.00"},{"game":"arma3","name":"Arma 3","version":"0.50"}],"since":{"game":"ofp","name":"Operation Flashpoint","version":"1.00"},"arma3_since":"0.50","branch":null,"locality":{"argument":"local","effect":"local","server_exec":false},"exec":null,"description":"Disable switching to next waypoint (current waypoint will never complete while lockwp is used). Sometimes used during cut-scenes.","syntaxes":[{"syntax":"groupName lockWP lock","since":null,"effect":null,"exec":null,"params":[{"name":"groupName","type":"Object or Group","optional":false,"default":null,"description":null,"types":["Object","Group"],"since":null,"text":"groupName: Object or Group"},{"name":"lock","type":"Boolean","optional":false,"default":null,"description":null,"types":["Boolean"],"since":null,"text":"lock: Boolean"}],"returns":{"type":"Nothing","types":["Nothing"],"description":null,"text":"Nothing"},"form":"binary","operator":null,"left":{"text":"groupName","types":["Object","Group"]},"right":{"text":"lock","types":["Boolean"]}}],"examples":[{"text":"```sqf\n_groupOne lockWP true;\n```","code":["_groupOne lockWP true;"]},{"text":"```sqf\n_Soldier lockWP true;\n```","code":["_Soldier lockWP true;"]},{"text":"```sqf\n_MyTank lockWP false;\n```","code":["_MyTank lockWP false;"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["waypoints","deleteWaypoint","copyWaypoints","setCurrentWaypoint","setWaypointBehaviour","setWaypointCombatMode","setWaypointCompletionRadius","setWaypointFormation","setWaypointHousePosition","setWaypointPosition","setWaypointScript","setWaypointSpeed","setWaypointStatements","setWaypointTimeout","setWaypointType","setWaypointVisible","waypointAttachVehicle","waypointAttachedVehicle","setWaypointLoiterRadius","waypointLoiterRadius","addWaypoint","setWaypointLoiterType","waypointSpeed"],"notes":[],"categories":["ArmA: Armed Assault: Scripting Commands","Arma 2: Operation Arrowhead: Scripting Commands","Arma 2: Scripting Commands","Arma 3: Scripting Commands","Command Group: Waypoints","Introduced with Operation Flashpoint version 1.00","Operation Flashpoint: Elite: Scripting Commands","Operation Flashpoint: New Scripting Commands","Operation Flashpoint: Scripting Commands","Scripting Commands","Scripting Commands: Local Effect","Take On Helicopters: Scripting Commands"]}