Garry's Mod Wiki

Entity:GetMomentaryRotButtonPos

Entity:GetMomentaryRotButtonPos

number Entity:GetMomentaryRotButtonPos( Angle turnAngle )

Description

Returns the amount a momentary_rot_button entity is turned based on the given angle. 0 meaning completely turned closed, 1 meaning completely turned open.

This only works on momentary_rot_button entities.

Arguments

1 Angle turnAngle
The angle of rotation to compare - usually should be Entity:GetAngles.

Returns

1 number
The amount the momentary_rot_button is turned, ranging from 0 to 1, or nil if the entity is not a momentary_rot_button.

Special Pages


Wikis

?

Render Time: 54ms

DB GetPage 36
Generate Html 3
SaveChanges (1) 6
Render Body 0
Render Sidebar 7