[TUT] Flight ideas for peds

I know basically three ideas that can be used in GTA IV to simulate an ped flying.

  • One: Control ped velocity property
  • Two: Control ped current vehicle speed
  • Three: Control an object velocity, and attach the ped to this object

To control the direction of the flight we can use game camera direction or create and vector3 to control the direction using keys like we can do with an plane or helicopter.

Download the code of this tutorial here


First ped flight idea (Basic one)

Method one is very simple but has some limitations, all we need to do is control the ped velocity, if we set the ped velocity is x=0, y=0 and z=1 we will make it float because he will be frozen in X and Y and will be with 1 in Z, and considering the common 3D vector components X and Y means horizontal measure and Z vertical:


Result:

Popular posts from this blog

GTA V - NIBMods menu download

GTA V Meteors NIB Style

ScripthookVDotNet and NIBMods menu troubleshooting