head decor rotation help

head decor rotation help

Postby yizhe » 12 April 2020, 08:37

How do i make a head decor (attached to a gun) look in the direction of my cursor?
Last edited by yizhe on 13 April 2020, 03:47, edited 1 time in total.
Meep!
User avatar
yizhe
Android T-01187 [200]
 
Posts: 224
Joined: 5 February 2014, 09:26
Location: Advance level editor

Re: head decor

Postby ghtmare » 12 April 2020, 16:11

maybe you have to calculate the angle(cursor-player-right), and rotate it xD.
however, the rotate trigger is to rotate around the x/y position of the decor.
perhaps you need more complicated calculation xD.
User avatar
ghtmare
Recruit
 
Posts: 11
Joined: 6 February 2019, 18:58

Re: head decor

Postby yizhe » 13 April 2020, 03:47

Not really working..But thx for the input tho!
Meep!
User avatar
yizhe
Android T-01187 [200]
 
Posts: 224
Joined: 5 February 2014, 09:26
Location: Advance level editor


Return to Bug Reporting Archive

Who is online

Users browsing this forum: No registered users