I noticed I had a typo in the script posted above ( mousestate=1 instead of mousestate=2 )
But it still came with problems, seems the script didn't allow for the RMB click ???
I have since reworked the script and it now functions as is should. Player can either press "T" or RMB click
to pickup any dynamic item, press "R" to rotate and then place back with either "T" key or RMB.
I did notice it's best to keep entities weight around 500-1500. More than that and it falls or slides away when placing back
;Artificial Intelligence Script
;Header
desc = Pickup Item and rotate
;Triggers
:state=0:dimvar=$EAY
:state=0:hudreset,hudx=50,hudy=75,hudsize=42,hudtext="T" To Pick Up,hudname=click,hudhide=1,hudmake=display
:state=0:hudreset,hudx=50,hudy=85,hudsize=42,hudtext="R" Key To Rotate,hudname=r,hudhide=1,hudmake=display,state=10
:state=10,plrdistwithin=70:state=11,hudshow=click,hudshow=r
:state=11,plrdistfurther=70:hudunshow=click,hudunshow=r,state=10
;Pick Object
:state=11,rmbgreater=10:walkkeys=0,plrdisable=9999,hudunshow=click,hudunshow=r,state=13
:state=11,keypressed=20 1:walkkeys=0,plrdisable=9999,hudunshow=click,hudunshow=r,state=12
:state=12,keypressed=20 0:state=2
:state=13,mousestate=0:state=2
;Drop Object
:state=2,keypressed=20 1:state=4
:state=2,rmbgreater=10:state=5
;Rotate Object
:state=2,keypressed=19 1:state=3
:state=3:incvar=$EAY 1
:state=3,keypressed=19 0:state=2
:state=4,keypressed=20 0:walkkeys=1,plrdisable=0,plrfreeze=0,state=10
:state=5,mousestate=0:walkkeys=1,plrdisable=0,plrfreeze=0,state=10
;End of Script
My games never have bugs. They just develop random features..
Lots and lots of random features...