abirduphigh

Untitled

Jan 31st, 2023
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. @model models/holograms/cube.mdl
  2. @inputs Elevation Vehicle:entity
  3. @persist AOR:angle
  4. if( first() | dupefinished() ){
  5. AxisOfRotation = 3 # Pick a setting 1, 2 or 3 until you find the desired rotational axis
  6. entity():propGravity( 0 )
  7. AOR = select( AxisOfRotation, ang( 1, 0, 0 ), ang( 0, 1, 0 ), ang( 0, 0, 1 ))
  8. }
  9. interval( 50 )
  10. entity():propFreeze( !entity():isPlayerHolding() )
  11. if( ->Vehicle && ->Elevation ){
  12. Ang = Vehicle:angles() + Elevation * AOR
  13. entity():setAng( Ang )
  14. }
Tags: e2 expression2
Add Comment
Please, Sign In to add comment