|
Legend26Join Date: 2008-09-08 Post Count: 10586 |
Other than using a tool, I doubt it. |
|
|
You can force the player to select a tool, but that's about it. |
|
|
The MouseButton1Down, MouseEnter, and MouseMoved events in most GUI objects can use the X and Y coordinates of the mouse, if that's of any help. |
|
|
You can't get the actual mouse object without using a hopperbin/tool. It sucks :(. |
|
|
@xSIXx
Is there a reason that you can't let players select a hopperbin? |
|
OzzypigJoin Date: 2008-03-27 Post Count: 4906 |
game.Players.Ozzypig.PlayerMouse
but it'll just give you that stupid error "this mouse is no longer active" if you try using it |
|
|
|
|
Put a tool in the starterpack, then put a script in the starterpack that changes the tool's parent to the player's character. Then use a tool.Selected event. Tada! : ) |
|
|
PartJoin Date: 2008-06-11 Post Count: 183 |
Oysi used a GUI I believe. Thats what the place description implies. He then used a formula to convert 2D coordinates to 3D coordinates.... tada...
Sorry I didn't tell you that yesterday, this morning I was thinking about how I was going to handle weapons in my RPG (and seeing as tools were out of the question because of some certain reasons). I guess I'll be using a GUI :D |
|
neily00Join Date: 2010-03-11 Post Count: 87 |
Well, what mouse are u talking about, u can make a GUI thing for the mouse to change instead, or the reload one, or something like that.
But to get the mouse without u need a realy complicated script in that.
I cant remeber what script is, i have it somewhere. |
|
chimo88Join Date: 2008-08-20 Post Count: 2051 |
Why Don't You ASK Him. :P |
|
oysi93Join Date: 2008-04-27 Post Count: 12469 |
@Part
Nope. What I said in the description was that the minimap shows the walls around
ya with rotation. (The minimap "rotates")
Heh, you really just had to see it to understand. xD
But now I am rewriting the two scripts that I made.
So you can't see it just yet.
Btw, I actually helped SIX with this yesterday.
He was nice enough to hand me some sound IDs too. =D |
|
PartJoin Date: 2008-06-11 Post Count: 183 |
Hmm... Well, I'll probably be using something with it at my RPG. |
|
SharksieJoin Date: 2009-10-10 Post Count: 30576 |
VERY few people know this...
Player.PlayerMouse |
|
Tj3Join Date: 2008-03-12 Post Count: 677 |
Here is an uncommon way to get it:
game.Players.SomePlayer.PlayerMouse
Object Browser FTW! |
|
SpaceWesJoin Date: 2008-09-13 Post Count: 467 |
From object browser:
Platform
Player
PlayerGui
Players
Pose
where is PlayerMouse? |
|
Tj3Join Date: 2008-03-12 Post Count: 677 |
PlayerMouse is a property of Player, className = Mouse. |
|
oysi93Join Date: 2008-04-27 Post Count: 12469 |
A lot of people know of the PlayerMouse. But I highly doubt you know the methods
and properties are locked, and the events needs a different mouse to be activated
to work.
Which eliminates the use of it for us. |
|
|
the mouse is always used by a single thing (like you cant get mouse.Target thru a gui i think..????)
when theres no gui or tool its used by the humanoid... |
|
PartJoin Date: 2008-06-11 Post Count: 183 |
You can get the mouse somewhat with the Humanoid. Check the object browser. I know you can get the part that was clicked on.
Personally, all I need is a way to change the cursor image without having to select a tool! |
|
pighead10Join Date: 2009-05-03 Post Count: 10341 |
PlayerMouse is locked for NO REASON.
Force them to select a hopperbin then remove it and keep the mouse selecting ability, if I can remember how... |
|
pighead10Join Date: 2009-05-03 Post Count: 10341 |
Aha, I looked at one of my previous scripts (and some page on the wiki) and I think you can do it by forcing them to select a HopperBin, storing the mouse in a variable with a LocalScript and removing the HopperBin.
:D? |
|