Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.




Introduced in

Version:3.4

Description

Description:

Sets the name of the given

system item

Systems-Menu item.

For more information, see Systems Menu in the VBS3 User Manual.

Syntax

Syntax:[vehicle, systemItemID, systemName, updateClients] call fn_vbs_setSystemItemName
Parameters:
  • vehicle: Object - The vehicle.
  • systemItemID: Number - The system item ID.
  • systemName: String - The system item name.
  • updateClients: Boolean - Update all clients
.
  • (
Optional
  • optional, default: true).
Return Value:Boolean -
False
Returns false, if the system or the item do not exist.

Warning

When using functions in VBS versions older than 3.4, certain limitations and requirements should be kept in mind - the main ones being that capitalization of the function name is crucial, and that #include "\vbs2\headers\function_library.hpp" has to be included in every script that utilizes it. More Category VBS Scripting Functions.

Examples

Examples:
 [tank1, 10, "Smoke", false] call fn_vbs_setSystemItemName

Additional Information

See also: fn vbs getSystemItemName, fn vbs getSystemItemParent
Multiplayer:
 

Problems:
 

Notes