Syntax: FRIC fric_rate(int)
Sets TARG's friction property, an integer from 0 to 100, which determines deceleration when touching a wall. The velocity parallel to the touching wall in the direction of motion is lost by this percentage per tick.
An object with a FRIC of 0 will only stop sliding naturally due to AERO. An object with FRIC 100 will never slide.
Returns, as an integer, the FRIC value of TARG, as set above.
FRIC being used in the command line to set HOTS' FRIC to 5 pix/tick2:
TARG HOTS FRIC 5
Being used to add 1 to the amount of friction:
SETV va00 FRIC ADDV va00 1 FRIC va00
Being used in the command line to output the FRIC of the current HOTS:
TARG HOTS OUTV FRIC
Being used to kill all agents with more than 99 pix/tick2 friction:
ENUM 0 0 0 DOIF FRIC > 99 KILL TARG ENDI NEXT