megaman54 Posted May 1, 2011 Share 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. Link to comment
proracer Posted May 1, 2011 Share Posted May 1, 2011 Maybe you can try look at resource: editor_main Link to comment
megaman54 Posted May 1, 2011 Author Share Posted May 1, 2011 I dint find anything useful in there Link to comment
megaman54 Posted May 2, 2011 Author Share 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? Link to comment
Moderators Citizen Posted May 2, 2011 Moderators Share Posted May 2, 2011 You need this functions: getCursorPosition then: getWorldFromScreenPosition then: setElementPosition And use this event: onClientRender or onClientMouseMove Link to comment
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