GoalEditorCursor Angle

Discuss thug2 modding, post your own, share your ideas, ask questions.
Anteara
Posts: 268
Joined: Thu Oct 14, 2010 2:55 am
Contact:

GoalEditorCursor Angle

Postby Anteara » Sun Feb 27, 2011 5:35 am

Hi all, I'm having a bit of trouble being able to spawn something as I rotate the GoalEditorCursor arrow, I can sucessfully spawn it where the arrow is, and I can change the orientation, but I haveto do that manually.

Code: Select all

:i function $anteara_cam_test1$
   :i call $Create$ arguments
      $name$ = $BO_BarrierQP01$
   :i $GoalEditorCursor$.$obj_GetPosition$
   :i $BO_BarrierQP01$.call $Obj_SetPosition$ arguments
      $position$ = %GLOBAL%$pos$
    :i $BO_BarrierQP01$.call $Obj_SetOrientation$ arguments
      $x$ = %i(0,00000000)$y$ = %GLOBAL%$?????????????$$z$ = %i(0,00000000)
:i endfunction


I'm pretty bad with GLOBAL, I'm not sure what to put in the $y$ axis area, When I rotate the arrow, I want the BO_BarrierQP01 orientation to be the same as the arrows orientation, Does anyone know how to do this? :S

Thanks.

Return to “THUG2 modding”

Who is online

Users browsing this forum: No registered users and 18 guests