I am needing a trigger to move a point based on the yaw of the camera but it's eluding me how to do it. My camera is an over the shoulder thrid person view. The camera is following the unit and i've turned camera mouse rotation on and locked the camera mouse relative mode on. This gives me the third person view I need.
There is a point a little ways ahead of the unit that it moves to. I have made it to where the unit is always moving to that point. If the player moves the camera's yaw to the left, I need that point to move to the left and the same for moving the camera to the right. This needs to be done in a way where I can make the unit do a complete 360. How would I go about accomplishing this?
Rollback Post to RevisionRollBack
The Team - TnTProductions
TnTProductions latest Project - Docking Bay 13
TnTProductions Epic RPG in the making - Psionics: Chaos Rising
Check out our website on wixx! http://bulletbutter.wix.com/tntproductions
move player unit
Events
Timer - Every 0.0 seconds of Real Time
Local Variables
Conditions
Actions
Unit - Order (<YOUR HERO>) to ( Move targeting ((Position of (<YOUR HERO>)) offset by 0.2 towards (Current camera yaw of player (<YOUR PLAYER>)) degrees)) (Replace Existing Orders)
This how the action looks in detail view:
Issue Order
Unit: <YOUR HERO>
Order: Order Targeting Point
Ability Command: Move
Target Point: Point With Polar Offset
Point: Position Of Unit
Unit: <YOUR HERO>
Distance: 0.2
Angle: Camera Yaw of Player
Player: <YOUR PLAYER>
Queue: Replace Existing Orders
I am needing a trigger to move a point based on the yaw of the camera but it's eluding me how to do it. My camera is an over the shoulder thrid person view. The camera is following the unit and i've turned camera mouse rotation on and locked the camera mouse relative mode on. This gives me the third person view I need.
There is a point a little ways ahead of the unit that it moves to. I have made it to where the unit is always moving to that point. If the player moves the camera's yaw to the left, I need that point to move to the left and the same for moving the camera to the right. This needs to be done in a way where I can make the unit do a complete 360. How would I go about accomplishing this?
@bulletbutter: Go
I have a rough example laying around..
Ill dig it up
There it all is.
From the sounds of it you prolly just want to turn the point to a directions
its gonna be like point = point with offset from Viewed Unit distance of off set # angle of offset( yaw of player camera)
If you give the map a run.... the camera system is kinda buggy ... you gotta fight it at the start to get it centered on the unit correctly...
once you have it positioned correctly you can stear the ship up down left right with the mouse.
Its kinda buggy. But theres a dialog in game that gives some info about the camera yaw and pitch
If its just about moving your unit, try this:
move player unit
Events
Timer - Every 0.0 seconds of Real Time
Local Variables
Conditions
Actions
Unit - Order (<YOUR HERO>) to ( Move targeting ((Position of (<YOUR HERO>)) offset by 0.2 towards (Current camera yaw of player (<YOUR PLAYER>)) degrees)) (Replace Existing Orders)
This how the action looks in detail view:
Issue Order
Unit: <YOUR HERO>
Order: Order Targeting Point
Ability Command: Move
Target Point: Point With Polar Offset
Point: Position Of Unit
Unit: <YOUR HERO>
Distance: 0.2
Angle: Camera Yaw of Player
Player: <YOUR PLAYER>
Queue: Replace Existing Orders