{"name":"flagOwner","operator":null,"title":"flagOwner","type":"command","url":"https://community.bistudio.com/wiki/flagOwner","revid":353770,"updated":"2024-03-23T14:27:22Z","groups":["Flags"],"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":"global","effect":"global","server_exec":false},"exec":null,"description":"Returns the global owner of a flag. A getter for setFlagOwner. Note that owner of a flag is Object rather than Number, as how it is usually with other owner commands","syntaxes":[{"syntax":"flagOwner flag","since":null,"effect":null,"exec":null,"params":[{"name":"flag","type":"Object","optional":false,"default":null,"description":null,"types":["Object"],"since":null,"text":"flag: Object"}],"returns":{"type":"Object","types":["Object"],"description":"the person or vehicle that owns the flag is returned. If used on anything else than a flag, the returned value is objNull. If the flag is on its pole, the return value is NULL. If the flagowner is dead, the return value is the name of the soldier model","text":"Object - the person or vehicle that owns the flag is returned. If used on anything else than a flag, the returned value is objNull. If the flag is on its pole, the return value is NULL. If the flagowner is dead, the return value is the name of the soldier model"},"form":"unary","operator":null,"left":null,"right":{"text":"flag","types":["Object"]}}],"examples":[{"text":"```sqf\n_person = flagOwner _flagOne;\n```","code":["_person = flagOwner _flagOne;"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["setFlagOwner"],"notes":[],"categories":["ArmA: Armed Assault: Scripting Commands","Arma 2: Operation Arrowhead: Scripting Commands","Arma 2: Scripting Commands","Arma 3: Scripting Commands","Command Group: Flags","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: Global Effect","Take On Helicopters: Scripting Commands"]}