You are not logged in.
Sorry for my english
I need create laser targeting for sniper rifle. How calculate target wiev and point of target view coordinates on a ground, walls, vehicles etc?
Use only english in this forum, please
Last edited by _Luft_ (05-09-2009 08:42)
Offline
Use these opcodes:
068D: get_camera_position_to $TEMPVAR_FLOAT_1 $TEMPVAR_FLOAT_2 $TEMPVAR_FLOAT_3 068D: get_camera_position_to $TEMPVAR_FLOAT_1 $TEMPVAR_FLOAT_2 $TEMPVAR_FLOAT_3 06BD: no_obstacles_between 67@ 68@ 69@ and 287@ 288@ 289@ solid 1 car 0 actor 0 object 0 particle 0
And you'll need to make a cycle that tests collision between points in different distance.
Offline