Jump to content

How convert result from GetShapeTestResult() (c#)


bogoslovniy

Recommended Posts

Maybe there is better solution, but I would do that something like this

// check for type
int entityType = RAGE.Game.Entity.GetEntityType(entity);
// then depending on type get element
Vehicle theVehicle = RAGE.Elements.Entities.Vehicles.GetAtHandle(entity);
Player thePlayer = RAGE.Elements.Entities.Players.GetAtHandle(entity);
MapObject theObject = RAGE.Elements.Entities.Objects.GetAtHandle(entity);

 

Edited by LightScr
Link to comment
Share on other sites

4 часа назад, LightScr сказал:

Maybe there is better solution, but I would do that something like this


// check for type
int entityType = RAGE.Game.Entity.GetEntityType(entity);
// then depending on type get element
Vehicle theVehicle = RAGE.Elements.Entities.Vehicles.GetAtHandle(entity);
Player thePlayer = RAGE.Elements.Entities.Players.GetAtHandle(entity);
MapObject theObject = RAGE.Elements.Entities.Objects.GetAtHandle(entity);

 

thank you, man

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...