OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Raptorsaurus on 22 Dec 2005, 03:09:09

Title: Pilots Heads Turned to the Side >:(
Post by: Raptorsaurus on 22 Dec 2005, 03:09:09
 Is there anyway to make the pilots in planes look straight ahead.  I am working on a cutscene where the camera focuses on the faces of pilot while they talk to each other and there base.  Anyway, the pilots seem to spend more time looking left and right than straight ahead.  It looks kind of dumb when they are talking and their head is turned to the side (only on occasion are they looking "into the camera").
Title: Re:Pilots Heads Turned to the Side >:(
Post by: 456820 on 22 Dec 2005, 11:35:54
i persume there in side of their planes/choppers ?
if so try
pilot dowatch a10

or something like that make them watch the vehcile their inside (might make them look down though

worth a try i have the same problem they tend to look at the camera for some reason but im not really bothered by the problem
Title: Re:Pilots Heads Turned to the Side >:(
Post by: RujiK on 23 Dec 2005, 05:45:29
or pilot_dude dowatch _cam.
I'm not 100% sure if that will work but I believe I recall seeing it done somewhere.
Title: Re:Pilots Heads Turned to the Side >:(
Post by: THobson on 24 Dec 2005, 08:31:26
This is a frustrating one.  The best method I have found is to give the unit a specific location a long way in front of it to watch.  Something like:

Code: [Select]
unitname doWatch [(getPos unitname select 0) + 500*sin(getDir unitName),(getPos unitname select 1) + 500*cos(getDir unitName),0]Or some such.

If you know exactly where the unit will be then find an object on the map that is a long way infront of it and do a:
Code: [Select]
unitname doWatch (object XXXX)Where XXXX is the object ID you can get from the editor.
 

Title: Re:Pilots Heads Turned to the Side >:(
Post by: 456820 on 24 Dec 2005, 10:19:59
what about a fast loop setting a game logic in front of the pilot and using the dowatch command ? that would work i think but may cause a spot of lag