Script Details


_owner getVariable ['isUsingSomething',0] == 0 && isNull itemInHands _owner && getNumber (configFile >> getText (configFile >> 'CfgVehicles' >> typeOf _owner >> 'moves') >> 'states' >> animationState _owner >> 'canUseActions') != 0 && _tool1 getVariable ['wet',0] > 0 && getNumber(configFile >> 'cfgVehicles' >> typeOf _tool1 >> 'absorbency') > 0


_abs=_tool1 getVariable['wet',0];
_tool1 setVariable['wet',_abs/2];
_owner playAction ['wring',{[_owner,'I have squezed some water out of it.','colorStatusChannel'] call fnc_playerMessage;

What is this?

The condition and action scripts are bits of code used by the game to handle more complicated mechanics than can be expressed by just providing components and results.

The condition script adds restrictions on when a recipe can be crafted. If the expression in the condition evaluates to false, the recipe isn't available.
The action script allows the recipe to handle more complex inputs and outputs. For example, it's used when combining stacks of items to allow stacks of any sizes to be merged together.

No comments yet!
No screenshots yet!


Log in or sign up to add your own comments!
Log in or sign up to add your own comments!