News UnrealEd Files Mods FragBU Liandri Archives
BeyondUnreal Forums

Go Back   BeyondUnreal Forums > Unreal Development > UnrealEngine2 Runtime > Programming

Reply
 
Thread Tools Display Modes
Old 16th May 2004, 03:57 PM   #1
ncmpinc
Registered User
 
Join Date: Apr. 12th, 2004
Posts: 13
getting Camera rotation data

I've made a redirection trigger which test if the player is pointing on a specific point, but the rotation data of the pawn can't be used for this, because the player itself don't have a pitch rotation. (It's always zero)
How can I get the camera rotation data?
ncmpinc is offline   Reply With Quote
Old 17th May 2004, 11:15 AM   #2
oneirotekt
Registered User
 
Join Date: Aug. 24th, 2003
Posts: 59
Quote:
Originally Posted by ncmpinc
I've made a redirection trigger which test if the player is pointing on a specific point, but the rotation data of the pawn can't be used for this, because the player itself don't have a pitch rotation. (It's always zero)
How can I get the camera rotation data?
Try Pawn.Controller.GetViewRotation(). That will return a Rotator with the player's current view angle.
oneirotekt is offline   Reply With Quote
Old 18th May 2004, 10:25 AM   #3
ncmpinc
Registered User
 
Join Date: Apr. 12th, 2004
Posts: 13
Thanks, it worked

if somebody want the script:
http://forums.beyondunreal.com/showthread.php?t=132090
ncmpinc is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 02:25 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.

Copyright ©1998 - 2012, BeyondUnreal, Inc.
Privacy Policy | Terms of Use
Bandwidth provided by AtomicGamer