cmf_player_fnc_drinking

From cluster wiki
Jump to navigation Jump to search


Hover & click on the images for description
Description
Description:
This function adds an Ace Self Interaction to drink liquids from items to speed up stamina recovery. Similar to the canteen seen in Periscope Games's Post Scriptum. It's called automatically if enabled in cmf_config.hpp
Execution:
Call
Groups:
CMF3: player
Syntax
Syntax:
[] call cmf_player_fnc_drinking
Return Value:
None
Examples
Example 1:
[] call cmf_player_fnc_drinking;
Additional Information
See also:
See also needed
Internal Variables
Locality Namespace Name Description
LOCAL Mission cmf_player_drinking_hydrationItems An Array variable containing the drinkable items in the following format: [objectClass, [itemClass, objectZOffset, recoveryFactor]]
LOCAL Mission cmf_player_drinking_fnc_consume An inline function for consuming items
Events
No events
Notes