setFlagOwner: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) |
Lou Montana (talk | contribs) m (Text replacement - "<sqf>([^↵][^<]*↵[^<]*)<\/sqf>" to "<sqf> $1 </sqf>") |
||
(16 intermediate revisions by the same user not shown) | |||
Line 39: | Line 39: | ||
|r1= [[Nothing]] | |r1= [[Nothing]] | ||
|x1= < | |x1= <sqf>_flag1 setFlagOwner _soldier1;</sqf> | ||
|x2= To return the flag back to the flag pole:< | |x2= To return the flag back to the flag pole: | ||
<sqf> | |||
//Method 1: (set owner null) | |||
flag _flagCarrier setFlagOwner objNull; | |||
//Method 2: (set the flag mast as the owner) | //Method 2: (set the flag mast as the owner) | ||
flag _flagCarrier setFlagOwner flag _flagCarrier; | |||
</sqf> | |||
|seealso= [[flag]] [[flagOwner]] [[setFlagSide]] | |seealso= [[flag]] [[flagOwner]] [[setFlagSide]] [[setFlagTexture]] [[flagSide]] [[flagTexture]] [[forceFlagTexture]] [[getForcedFlagTexture]] [[:Category:Flag Textures|Flag Textures]] | ||
}} | }} | ||
Latest revision as of 19:43, 3 September 2024
Description
- Description:
- Sets flag owner. When owner is set to objNull or any object other than a unit of class man or logic, flag is returned to the flagpole. A flag owned by a logic has no visual representation.
- Groups:
- FlagsObject Manipulation
Syntax
- Syntax:
- flag setFlagOwner owner
- Parameters:
- flag: Object
- owner: Object
- Return Value:
- Nothing
Examples
- Example 1:
- _flag1 setFlagOwner _soldier1;
- Example 2:
- To return the flag back to the flag pole:
Additional Information
- See also:
- flag flagOwner setFlagSide setFlagTexture flagSide flagTexture forceFlagTexture getForcedFlagTexture Flag Textures
Notes
-
Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note
- Bdfy
- Since flags can not be owned by vehicles, use "flag setFlagOwner driver tank1" or "flag1 setFlagOwner tank1D" to assign the flag to the vehicle's driver. The second method will only work if tank1 is the name of a unit, not a variable refering to it. True for OFP&Arma
Categories:
- Scripting Commands
- Introduced with Operation Flashpoint version 1.00
- Operation Flashpoint: New Scripting Commands
- Operation Flashpoint: Scripting Commands
- Operation Flashpoint: Elite: Scripting Commands
- ArmA: Armed Assault: Scripting Commands
- Arma 2: Scripting Commands
- Arma 2: Operation Arrowhead: Scripting Commands
- Take On Helicopters: Scripting Commands
- Arma 3: Scripting Commands
- Command Group: Flags
- Command Group: Object Manipulation
- Scripting Commands: Global Effect