• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Pawn] Actor weapon
#12
you can easy get offset from object editor by using this function when you actor is on z_angle 0.0

Code:
x,y,z - actor position

tx,ty,tz - object position



rx = 0.0, ry = 0.0,rz = 0

ShiftPositionToOffset(Float:x,Float:y,Float:z,Float:rx,Float:ry,Float:rz,&Float:offset_x,&Float:offset_y,&Float:offset_z,Float:tx,Float:ty,Float:tz);
  Reply


Messages In This Thread
Actor weapon - by annety - 2021-03-07, 02:30 PM
RE: Actor weapon - by Virsenas - 2021-03-07, 02:34 PM
RE: Actor weapon - by Y_Less - 2021-03-07, 04:28 PM
RE: Actor weapon - by annety - 2021-03-08, 01:16 AM
RE: Actor weapon - by Y_Less - 2021-03-10, 02:06 AM
RE: Actor weapon - by Radical - 2021-03-10, 10:38 AM
RE: Actor weapon - by annety - 2021-03-21, 06:47 PM
RE: Actor weapon - by annety - 2021-04-20, 06:22 AM
RE: Actor weapon - by AbyssMorgan - 2021-04-20, 02:53 PM
RE: Actor weapon - by annety - 2021-04-21, 07:19 AM
RE: Actor weapon - by annety - 2021-04-26, 08:30 AM
RE: Actor weapon - by AbyssMorgan - 2021-04-27, 03:05 PM

Forum Jump: