Показать сообщение отдельно
Старый 02.01.2010, 16:20   #8
NitE
злобный флудер
 
Регистрация: 10.07.2007
Сообщений: 2,585
Написано 789 полезных сообщений
(для 1,476 пользователей)
Ответ: поворот объекта на объект

entity - entity handle
target - target entity handle
roll# (optional) - roll angle of entity

Description
Points one entity at another.

The optional roll parameter allows you to specify a roll angle as pointing an entity only sets pitch and yaw angles.

If you wish for an entity to point at a certain position rather than another entity, simply create a pivot entity at your desired position, point the entity at this and then free the pivot.
(Offline)
 
Ответить с цитированием