setPlateNumber: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\| *((\[\[[a-zA-Z0-9_ |()]+\]\],? ?)+) * \}\}" to "|seealso= $1 }}")
m (Text replacement - "<dl class="command_description"> <dd class="notedate">" to "<dl class="command_description"> <dt></dt> <dd class="notedate">")
Line 46: Line 46:
<!-- CONTINUE Notes -->
<!-- CONTINUE Notes -->
<dl class="command_description">
<dl class="command_description">
<dt></dt>
<dd class="notedate">Posted on April 19, 2018 - 05:34 (UTC)</dd>
<dd class="notedate">Posted on April 19, 2018 - 05:34 (UTC)</dd>
<dt class="note">[[User:demellion|demellion]]</dt>
<dt class="note">[[User:demellion|demellion]]</dt>

Revision as of 14:39, 5 April 2021

Hover & click on the images for description

Description

Description:
Description needed
Groups:
Object Manipulation

Syntax

Syntax:
Syntax needed
Parameters:
vehicle: Object
string: String
Return Value:
Return value needed

Examples

Example 1:
vehicle player setPlateNumber "Custom Plate 99"
Example 2:
Reset plate to the world's randomized template:_return = ""; _cfg = (configFile >> "CfgWorlds" >> worldName); { _return = _return + (call { if (_x == "$") exitWith { selectRandom (getText (_cfg >> "plateLetters") splitString "") }; if (_x == "#") exitWith { selectRandom ["0","1","2","3","4","5","6","7","8","9"] }; _x }); } forEach (getText (_cfg >> "plateFormat") splitString ""); _car setPlateNumber _return;

Additional Information

See also:
getPlateNumber

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
Posted on April 19, 2018 - 05:34 (UTC)
demellion
NOTICE: If this command is performed where argument is remote, the plate will change and getPlateNumber will also return the new value, until vehicle owner sync it back to original in ~10 seconds after.