benjamin94 Posted July 9, 2015 Share Posted July 9, 2015 (edited) As the title says is there any method to get all entities within a distance of a specified position?There is already for Vehicle and Ped but not for all entities. Or a method to get the colliding Entity of a given Entity? Edited July 9, 2015 by benjamin94 Link to comment Share on other sites More sharing options...
0Root1 Posted July 9, 2015 Share Posted July 9, 2015 (edited) Can you tell me, what Entitiy means except Ped or Vehicle? Answer to your question is, maybe method under class World named GetAllEntities() can help you. It came with ScripthookVdotnet update v1.1 Edited July 9, 2015 by 0Root1 Link to comment Share on other sites More sharing options...
benjamin94 Posted July 9, 2015 Author Share Posted July 9, 2015 (edited) I mean like Props (for example Trees or signs or other properties) Thanks man i will look into that method now. Edit: The method GetAllEntities returns about 50 entities. But is there a way to get the Entity thats colliding with another Entity ? Like the method http://www.dev-c.com/nativedb/func/info/2975c866e6713290? But then i need the method to return the Entity thats colliding with the given entity? Edited July 9, 2015 by benjamin94 Link to comment Share on other sites More sharing options...
leftas Posted July 9, 2015 Share Posted July 9, 2015 Can you tell me, what Entitiy means except Ped or Vehicle? Answer to your question is, maybe method under class World named GetAllEntities() can help you. It came with ScripthookVdotnet update v1.1 I dunno why they named that, but that pool, which scripthook access, is script guid pool - it holds peds and vehicles which related to scripts(created by them, used and etc.). All the best, Paul. Link to comment Share on other sites More sharing options...
benjamin94 Posted July 9, 2015 Author Share Posted July 9, 2015 Can you tell me, what Entitiy means except Ped or Vehicle? Answer to your question is, maybe method under class World named GetAllEntities() can help you. It came with ScripthookVdotnet update v1.1 I dunno why they named that, but that pool, which scripthook access, is script guid pool - it holds peds and vehicles which related to scripts(created by them, used and etc.). All the best, Paul. Hmm i understand now, weird then, so do you know any method that can do this: to get the Entity thats colliding with another Entity ? Link to comment Share on other sites More sharing options...
leftas Posted July 9, 2015 Share Posted July 9, 2015 Hm, no, but either ray cast or use natives which gets nearby peds, or use RagePluginHook which can get all Vehicles(maybe peds and entitys as well). All the best, Paul. Link to comment Share on other sites More sharing options...
benjamin94 Posted July 9, 2015 Author Share Posted July 9, 2015 Hm, no, but either ray cast or use natives which gets nearby peds, or use RagePluginHook which can get all Vehicles(maybe peds and entitys as well). All the best, Paul. Hmm i'd rather stick to .Net ScriptHook, anyway im going to look into this Raycast method. It looks promising! Link to comment Share on other sites More sharing options...
unknown modder Posted July 15, 2015 Share Posted July 15, 2015 Can you tell me, what Entitiy means except Ped or Vehicle? Answer to your question is, maybe method under class World named GetAllEntities() can help you. It came with ScripthookVdotnet update v1.1 I dunno why they named that, but that pool, which scripthook access, is script guid pool - it holds peds and vehicles which related to scripts(created by them, used and etc.). All the best, Paul. The other Peds/Vehicles/Props pools in memory arent useful for working with natives unless you copy them into the script guid pool, which coincidently is what natives like get_ped_nearby_peds and raycasts will do with entities they find Link to comment Share on other sites More sharing options...
leftas Posted July 22, 2015 Share Posted July 22, 2015 (edited) Can you tell me, what Entitiy means except Ped or Vehicle? Answer to your question is, maybe method under class World named GetAllEntities() can help you. It came with ScripthookVdotnet update v1.1 I dunno why they named that, but that pool, which scripthook access, is script guid pool - it holds peds and vehicles which related to scripts(created by them, used and etc.). All the best, Paul. The other Peds/Vehicles/Props pools in memory arent useful for working with natives unless you copy them into the script guid pool, which coincidently is what natives like get_ped_nearby_peds and raycasts will do with entities they findNot sure if I understand you, but yes that's is done in purpose of performance. And it copies every vehicle, ped when you use native with them for example get last vehicle, it checks global with current vehicle if it isn't the same vehicle it adds vehicle to guid pool. Or like you said get near by entities or ray cast. Edit: And if you were talked about copying other pool to guid, yes we need to do that, so that natives would access the handles Best wishes, Paul. Edited July 25, 2015 by leftas Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now