-- LUA Script - precede every function and global member with lowercase name of script + '_main function constrainxy_norotate_init( e ) local obj = g_Entity[ e ].obj -- constraint axis X Y Z ConstrainObjMotion ( obj, 1, 0, 1 ) ConstrainObjRotation( obj, 0, 0, 0 ) end function constrainxy_norotate_main( e ) end