megaman54 Posted May 1, 2011 Posted May 1, 2011 How i can attach a object to my mouse and when i click somewhere the object stays there? I mean like the CCTV script by Aiboforcen has the "Place" button to place terminals and cameras with mouse.
megaman54 Posted May 2, 2011 Author Posted May 2, 2011 Well, if you have used the CCTV system there is a "Place" buton then you are making a camera or terminal. That button allows you to place the thing with your mouse. How to do this?
Moderators Citizen Posted May 2, 2011 Moderators Posted May 2, 2011 You need this functions: getCursorPosition then: getWorldFromScreenPosition then: setElementPosition And use this event: onClientRender or onClientMouseMove
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now