Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @model models/holograms/cube.mdl
- @inputs Elevation Vehicle:entity
- @persist AOR:angle
- if( first() | dupefinished() ){
- AxisOfRotation = 3 # Pick a setting 1, 2 or 3 until you find the desired rotational axis
- entity():propGravity( 0 )
- AOR = select( AxisOfRotation, ang( 1, 0, 0 ), ang( 0, 1, 0 ), ang( 0, 0, 1 ))
- }
- interval( 50 )
- entity():propFreeze( !entity():isPlayerHolding() )
- if( ->Vehicle && ->Elevation ){
- Ang = Vehicle:angles() + Elevation * AOR
- entity():setAng( Ang )
- }
Add Comment
Please, Sign In to add comment