CLEO Help Get Aiming Pos of a helicopter ?

CLEO related
Status
Not open for further replies.

Grubitsh

Active member
Joined
Jul 28, 2014
Messages
104
Reaction score
0
Hello !

Everyone know this snippet to get aim position -> http://ugbase.eu/snippets/get-aiming-position/msg1002/#msg1002

i'd like the same snippet not for the camera, but the angle of a helicopter please.
It's for a crosshair to shoot with the seasparrow at 3rd person view

Thanks
 

Grubitsh

Active member
Joined
Jul 28, 2014
Messages
104
Reaction score
0
Ok guys I tried it by myself with this snippet http://ugbase.eu/snippets/get3dxyzinfrontof/
Code:
0AB1: call_scm_func @get3DXYZInFrontOf 6 XYZ 1@ 2@ 3@ Z_Angle 4@ Y_Angle 5@  Distance 7.0 Return_XYZ_To 6@ 7@ 8@
It works well but I let the parameter "distance" as a constant so it's not really accurate at close range and long range (only medium range good).
How to get a dynamic distance from helicopter to the "looking position ground" ?

https://www.youtube.com/watch?v=IkzO0RDnjxM​
 

Codex1337

Active member
Joined
Mar 1, 2014
Messages
170
Reaction score
1
Add larger distance, for example 100.0.
Store your position
Check if there is any obstacle between your position and infront position.
If there is, then subtract 1 from distance and redo the formula.
repeat until there is no obstacle. There may be a good way for it but that's all i know.
 
Status
Not open for further replies.
Top