Sector_SetFriction

From ZDoom Wiki

Jump to: navigation, search

219:Sector_SetFriction (tag, amount)

tag: Tag of affected sector 
amount: Amount of friction 

Sets a sector's friction. If amount is 0, then the amount of friction is determined by the line's length (just like BOOM's 223 linedef).
If Sector_SetFriction is used on a linedef it is initialzed during inititaization of the map.

You can use it in a script to alter the friction in a sector, valid values are from 1 to 255:

A value of 128 results in normal friction.
Decreasing the value from 128 results in increased friction.
Increasing the value from 128 results in decreased friction.

Personal tools