Page tree
Skip to end of metadata
Go to start of metadata


   


Introduced in

Version:18.3.0

Description

Description:Changes used RscObject class for Inventory UI elements such as Watch, GPS, Notpad, and Compass for the unit it is applied on.

Syntax

Syntax:

unit setItemResource [type, resource]

Parameters:
  • unit: Object - Unit to check.
  • type: String - type of Item. Can be:
    • "watch"
    • "compass"
    • "gps"
  • resource: String - RscObject classname, Can Be:
    • Any RscObject class.
    • "" - Is reset it to default.
Return Value:Nothing

Examples

Examples:
player setItemResource [“watch”,”RscWatchDigital”]
player setItemResource [“watch”,””]

Additional Information

See also:-
Multiplayer:-
Problems:-