{"name":"opfor","operator":null,"title":"opfor","type":"command","url":"https://community.bistudio.com/wiki/opfor","revid":369180,"updated":"2024-09-03T10:34:45Z","groups":["Sides"],"status":"ok","replaced_by":[],"games":[{"game":"arma3","name":"Arma 3","version":"0.50"}],"since":{"game":"arma3","name":"Arma 3","version":"0.50"},"arma3_since":"0.50","branch":null,"locality":{"argument":null,"effect":null,"server_exec":false},"exec":null,"description":"Pre-defined variable for the opfor side.","syntaxes":[{"syntax":"opfor","since":null,"effect":null,"exec":null,"params":[],"returns":{"type":"Side","types":["Side"],"description":null,"text":"Side"},"form":"nullary","operator":null,"left":null,"right":null}],"examples":[{"text":"```sqf\nif (side player == opfor) then\n{\n    hint \"OPFOR\";\n};\n```","code":["if (side player == opfor) then\n{\n\thint \"OPFOR\";\n};"]}],"multiplayer":null,"problems":null,"aliases":["east"],"see_also":["side","civilian","blufor","east","independent","resistance","west"],"notes":[],"categories":["Arma 3: New Scripting Commands","Arma 3: Scripting Commands","Command Group: Sides","Introduced with Arma 3 version 0.50","Scripting Commands"]}