Getting player view angle (without MWSE)

Post » Tue Oct 04, 2011 4:52 pm

I've looked far and wide and couldn't find solutions to what I'm trying to do on the web (basically a grapple hook). So the best I could come up with is this, using a marksman weapon :

- (get player's x,y,z and Z Angle coordinates)
- summon a bent vertical-ish row of (...45 to 180) very small invisible, creatures bending around the front of the player
- detect which one gets hit to know where we're looking

... not done yet ...

- send a flying, 0-collision item in that direction at a set speed
- send a faster flying, very small, invisible creature (with collision) following that item to detect where the hook collides when its coordinates start differring from the 0-collision item
- send another faster flying such creature following the item too, but player-sized, to detect if and where the player collides on the way
- move the player.

Still not laughing ? Now you can tell me about better ideas... please ? :(
User avatar
Shirley BEltran
 
Posts: 3450
Joined: Wed Jul 26, 2006 4:14 pm

Post » Tue Oct 04, 2011 3:56 am

- send a flying, 0-collision item in that direction at a set speed

This is redundant. Some objects will be moved when you position them so they are colliding. So you can just use setpos and then compare it with getpos.

- send a faster flying, very small, invisible creature (with collision) following that item to detect where the hook collides when its coordinates start differring from the 0-collision item

Why do you need this when you have a human sized object anyway?
User avatar
Steeeph
 
Posts: 3443
Joined: Wed Apr 04, 2007 8:28 am


Return to III - Morrowind

cron