• Making an entity hover
    2 replies, posted
hello i have seen manu times that can get anything to hover but im not Where to start can somebody tell me what function you use ?
Why not look at some codes? There are drones out there on the workshop, so they're free, means you can look into that.
[QUOTE=lucaspou;49610204]hello i have seen manu times that can get anything to hover but im not Where to start can somebody tell me what function you use ?[/QUOTE] Take a look at this code [url]https://github.com/garrynewman/garrysmod/blob/master/garrysmod/gamemodes/sandbox/entities/entities/gmod_hoverball.lua[/url] . It's the hoverball entity that's shipped with the game. the function you should be interested in is ENT:PhysicsSimulate( phys, deltatime ) and line 44 where we tell the engine to call it.
Sorry, you need to Log In to post a reply to this thread.