setFlagOwner: Difference between revisions
Jump to navigation
Jump to search
m (VBS2 scripting category removal) |
(mass edit: removing obsolete </dt> and </dd> tags) |
||
Line 33: | Line 33: | ||
<dl class="command_description"> | <dl class="command_description"> | ||
<!-- Note Section BEGIN --> | <!-- Note Section BEGIN --> | ||
<dt class="note">'''[[User:Bdfy|Bdfy]]''' | <dt class="note">'''[[User:Bdfy|Bdfy]]''' | ||
<dd class="note"> | <dd class="note"> | ||
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 | 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 | ||
<!-- Note Section END --> | <!-- Note Section END --> | ||
Revision as of 02:54, 18 October 2011
Description
- Description:
- Set 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:
- Uncategorised
Syntax
Examples
- Example 1:
_flag1 setFlagOwner _soldier1
Additional Information
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
Notes
- 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
Bottom Section
Categories:
- Scripting Commands
- Introduced with Operation Flashpoint version 1.00
- Operation Flashpoint: New Scripting Commands
- Operation Flashpoint: Scripting Commands
- Command Group: Uncategorised
- Scripting Commands: Global Effect
- Scripting Commands OFP 1.96
- Scripting Commands OFP 1.46
- Scripting Commands ArmA
- Scripting Commands ArmA2