setFlagOwner: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
No edit summary
Line 32: Line 32:
<dd class="note">
<dd class="note">


In '''?engine?''', if you want to set flag to the vehicle you have to add "d" to its name.
If you want to set flag to the vehicle you have to add "d" to its name.
Example: "flag1 setFlagOwner tank1d" not "flag1 setFlagOwner tank1"
Example: "flag1 setFlagOwner tank1d" not "flag1 setFlagOwner tank1"
And this won't work with empty vehicles.
And this won't work with empty vehicles. Tested on Arma 1.02.


In '''OFP v1.96''', flags can not be owned by vehicles! Use ''"flag setFlagOwner driver tank1"'' [[User:Ceeeb|Ceeeb]]
In '''OFP v1.96''', flags can not be owned by vehicles! Use ''"flag setFlagOwner driver tank1"'' [[User:Ceeeb|Ceeeb]]

Revision as of 23:21, 5 February 2007

Hover & click on the images for description

Description

Description:
Set flag owner. When owner is set to objNull, flag is returned to the flagpole.
Groups:
Uncategorised

Syntax

Syntax:
flag setFlagOwner owner
Parameters:
flag: Object
owner: Object
Return Value:
Nothing

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
If you want to set flag to the vehicle you have to add "d" to its name. Example: "flag1 setFlagOwner tank1d" not "flag1 setFlagOwner tank1" And this won't work with empty vehicles. Tested on Arma 1.02. In OFP v1.96, flags can not be owned by vehicles! Use "flag setFlagOwner driver tank1" Ceeeb

Bottom Section