Scripts / [SOLVED] Rotate To Player problem

Author
Message
Tiger1980
3
Years of Service
User Offline
Joined: 21st Mar 2021
Location:
Posted: 16th Apr 2021 22:23
Hi, i have a problem with the code RotateToPlayerSlowly. On some entities i don't see te front but the backside. Is it possible to turn this anyway ?

The author of this post has marked a post as an answer.

Go to answer
PM
smallg
Community Leader
18
Years of Service
User Offline
Joined: 8th Dec 2005
Location:
Posted: 17th Apr 2021 09:53 Edited at: 17th Apr 2021 11:43
This post has been marked by the post author as the answer.
you can flip them 180 in a modelling program for the best solution
or use the GG importer to reimport the model and set the rotation there
or try fixnewy = 180 in the .fpe
or do the rotation by code and add 180 to the Y angle
edit: excellent
for future searchers i'll add a quick example of how to do it via code
lua guide for GG
https://steamcommunity.com/sharedfiles/filedetails/?id=398177770
windows 10
i5 @4ghz, 8gb ram, AMD R9 200 series , directx 11

Attachments

Login to view attachments
Tiger1980
3
Years of Service
User Offline
Joined: 21st Mar 2021
Location:
Posted: 17th Apr 2021 10:02 Edited at: 17th Apr 2021 10:03
Yes it works fine, fixnewy = 180 is the solution, thx smallg
PM

Login to post a reply

Server time is: 2024-05-02 06:03:00
Your offset time is: 2024-05-02 06:03:00