OFPEC Forum
Editors Depot - Mission Editing and Scripting => ArmA - Editing/Scripting General => Topic started by: Case on 14 Jun 2007, 01:36:45
-
I have read over the cam scripting tutorials here, and I got some good camera scripts working.
I have found a strange problem though that I haven't been able to resolve.
If I set the cam target to a unit that has already mounted a vehicle, the cam positions itself where the unit boarded the vehicle.
The way my script is going to work, the unit may or may not be in a vehicle at the time of the cam script firing, so I can't just target the vehicle.
Is there a different command I can use, or will I need to look into checking what vehicle the unit is in, and targetting that vehicle?
Thanks!
-
cam camsetTarget vehicle unit
vehicle unit when unit is not in any vehicle is always the unit itself.
-
Perfect.
Thanks Mandoble.