ARMAzac 26 Posted June 3, 2022 Just want a way to spawn a vehicle on the nearest road, pointing in the direction of the road.. a very simple thing to do in Arma 3 but seems impossible in Reforger. running a "QueryEntitiesBySphere" and looking for "RoadEntity" comes up with nothing (I believe these are only in the world editor) Share this post Link to post Share on other sites
sarogahtyp 1109 Posted June 3, 2022 how and where exactly are you running QueryEntitiesBySphere? It's not the case that I could help you much with your problem but I wan't to try out that method and learn it's usage... Edit: after following the link in the below post it is done this way: GetGame().GetWorld().QueryEntitiesBySphere(marker.GetOrigin(), m_iCityRange, CheckHouseAddToArray, FilterHouseEntities, EQueryEntitiesFlags.STATIC); So it's a GetGame.GetWorld method. Declaration of that method in BaseWorld.c: proto external bool QueryEntitiesBySphere(vector center, float radius, QueryEntitiesCallback addEntity, QueryEntitiesCallback filterEntity = null, EQueryEntitiesFlags queryFlags = EQueryEntitiesFlags.ALL); Share this post Link to post Share on other sites
ARMAzac 26 Posted June 3, 2022 You can see how I use it here:https://github.com/ArmaOverthrow/Overthrow.Arma4/blob/f7e86e3bac17498adde069ba9829cbe37293ccc8/Scripts/Game/GameMode/Components/OVT_TownManagerComponent.c#L67 1 Share this post Link to post Share on other sites