cutRsc: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
No edit summary
Line 19: Line 19:


Resource background - arguments in format '''''["name", "type", speed]''''' or '''''["name", "type"]'''''.<br>
Resource background - arguments in format '''''["name", "type", speed]''''' or '''''["name", "type"]'''''.<br>
If speed is not given, 1 is assumed.<br>
If speed is not given, 1 is assumed.<br>
Resource can be defined in [[Description.ext|description.ext]].
Resource can be defined in [[Description.ext|description.ext]].
Also see [[titleRsc]], with these two commands you can show two different resources at once.





Revision as of 22:47, 27 May 2006


cutRsc effect


Operand types:

effect: Array

Type of returned value:

Nothing

Description:

Resource background - arguments in format ["name", "type", speed] or ["name", "type"].

If speed is not given, 1 is assumed.

Resource can be defined in description.ext.

Also see titleRsc, with these two commands you can show two different resources at once.


Example:

cutRsc ["binocular", "PLAIN"]
cutRsc ["binocular", "PLAIN", 10]