This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | |||
lookat [2018/01/08 01:22] korshun |
lookat [2018/01/08 01:23] (current) korshun |
||
---|---|---|---|
Line 9: | Line 9: | ||
void LookAt(int tid, int target_tid) | void LookAt(int tid, int target_tid) | ||
| | ||
- | Rotates the actor so that it's looking at another actor. Takes into account both actors' [[zdoom>GetActorViewHeight|ViewHeights]] to make the actor look at the other actor's head or center. | + | Rotates the actor so that it's looking at another actor. Takes into account both actors' [[zdoom>GetActorViewHeight|ViewHeights]] to make the actor look at the other actor's head, if the target actor has a CameraHeight, or center, if it doesn't. |
| |