setFlagOwner: Difference between revisions
Jump to navigation
Jump to search
m (sorry about the constant editing...) |
m (logic can own flag) |
||
Line 7: | Line 7: | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| Set flag owner. When owner is set to [[objNull]] or any object other than a unit of class man, flag is returned to the flagpole. |= Description | | Set flag owner. When owner is set to [[objNull]] or any object other than a unit of class [[Models_%26_Classnames:_CfgVehicles_-_Class_Man|man]] or [[Game_Logic|logic]], flag is returned to the flagpole. A flag owned by a logic has no visual representation.|= Description | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
Line 31: | Line 31: | ||
<dt class="note">'''[[User:Bdfy|Bdfy]]'''</dt> | <dt class="note">'''[[User:Bdfy|Bdfy]]'''</dt> | ||
<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 driver. The second method will only work if ''tank1'' is the name of a unit, not a variable refering to it. | 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. | ||
</dd> | </dd> | ||
<!-- Note Section END --> | <!-- Note Section END --> |
Revision as of 08:39, 6 February 2007
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
- See also:
- See also needed
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.