OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: OrnelP on 21 Jun 2006, 05:01:40
-
??? Hey every0ne, i need some help, I seen some screenshots with tanks driving with the Gun pointed to the sky. Tanks really do drive with the guns at the sky when they have a loaded shell and in formation column. So how do i get the tanks gun to sit pointed up and be able to have the AI drive like that? is it possible? All help Appreciated -Ornelp :D
(http://)
[attachment deleted by admin]
-
it's quite possible...i can imagine a way which would use some math (where i have no knowledge at all).
you would need a looped script which setpos a invisible object (might be a gamelogic) constantly in front of the tank at a certain height.
The mathematics would be necessarly to keep the GL in front of the tank and not to drift to left or right...or even behind.
Once you get this, just use the dotarget command to have the cannon pointed to the sky.
You would also need a point where the script cancels this dotarget thing, else the tank would not fight enemy tanks at all. But i think this could be simply done by checking the behaviour.
Maybe someone who has more knowledge of math could write such a script.