setPlateNumber: Difference between revisions
Jump to navigation
Jump to search
m (Text replacement - "<h3 style="display:none">Bottom Section</h3> " to "") |
Lou Montana (talk | contribs) m (Text replacement - " *\| *([Cc]omments|COMMENTS|Game|[Gg]ame [Nn]ame( +[0-9])?|Game [Vv]ersion( +[0-9])?|Game Version \(number surrounded by NO SPACES\)|Arguments in MP|MP[Aa]rg|Multiplayer Arguments( \("local" or "global"\))?|Effects|Execution|Effects...) |
||
Line 1: | Line 1: | ||
{{Command | {{Command | ||
| arma3 | | arma3 | ||
|1.82 | |1.82 | ||
|arg= local | |arg= local | ||
|eff= global | |eff= global | ||
|gr1= Object Manipulation | |gr1= Object Manipulation | ||
|Change the license plates on any vehicle which has plates configured. Max 15 characters are allowed! | |Change the license plates on any vehicle which has plates configured. Max 15 characters are allowed! | ||
| vehicle '''setPlateNumber''' string | | vehicle '''setPlateNumber''' string | ||
|p1= vehicle: [[Object]] | |p1= vehicle: [[Object]] | ||
|p2= string: [[String]] | |p2= string: [[String]] | ||
| [[Nothing]] | | [[Nothing]] | ||
|x1= <code>[[vehicle]] [[player]] '''setPlateNumber''' "Custom Plate 99"</code> | |x1= <code>[[vehicle]] [[player]] '''setPlateNumber''' "Custom Plate 99"</code> | ||
|x2= Reset plate to the world's randomized template:<code>_return = ""; | |x2= Reset plate to the world's randomized template:<code>_return = ""; | ||
Line 37: | Line 37: | ||
}); | }); | ||
} [[forEach]] ([[getText]] (_cfg >> "plateFormat") [[splitString]] ""); | } [[forEach]] ([[getText]] (_cfg >> "plateFormat") [[splitString]] ""); | ||
_car [[setPlateNumber]] _return;</code> | _car [[setPlateNumber]] _return;</code> | ||
| [[getPlateNumber]] | | [[getPlateNumber]] | ||
}} | }} |
Revision as of 11:09, 18 January 2021
Description
- Description:
- Change the license plates on any vehicle which has plates configured. Max 15 characters are allowed!
- Groups:
- Object Manipulation
Syntax
- Syntax:
- vehicle setPlateNumber string
- Parameters:
- vehicle: Object
- string: String
- Return Value:
- Nothing
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.