OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: sgt.griff on 13 Jun 2005, 13:44:21

Title: Shooting out of Vehicles
Post by: sgt.griff on 13 Jun 2005, 13:44:21
How do I get people (And the Player) To be able to shoot out of vehicles with their personal weapons.
Like on Blackhawk Down in the Humvees and trucks
Title: Re:Shooting out of Vehicles
Post by: RujiK on 13 Jun 2005, 18:19:45
With OFPS engine with out addons it is impossible. The only way it can even be done is create an artifical gunner position right where the player is.

With out addons the only way would be very lame because its almost impossible to turn. (lots of setpos.)
Title: Re:Shooting out of Vehicles
Post by: oyman on 13 Jun 2005, 19:48:32
Col. klink, i think was making this for VBS1 and it worked, they even have a little video about it somewhere...
Title: Re:Shooting out of Vehicles
Post by: Grendel on 13 Jun 2005, 20:50:07
Hmmmm....If you used a setpos loop with a querry (within the loop) working with that keystroke detecting script to see if the player has hit the keys to rotate, and if so adjust the setdir...that might work.

-Grendel
Title: Re:Shooting out of Vehicles
Post by: RujiK on 13 Jun 2005, 20:51:48
Yes however then you would have to aim with the num pad as the mouse will not turn the dummy camera.
Title: Re:Shooting out of Vehicles
Post by: sgt.griff on 14 Jun 2005, 16:00:00
Thanks for the input guys ;)
Do you know which add-ons will let me do this?
Cheers
Title: Re:Shooting out of Vehicles
Post by: Loup-Garou on 14 Jun 2005, 19:53:22
I've made, with some help, a quite good script ; see : http://www.ofpec.com/yabbse/index.php?board=10;action=display;threadid=23312  ;).