no.regerds 0 Posted February 4, 2016 Share Posted February 4, 2016 (edited) Hi Folks, i'm currently workin on an GTA IV mod and I try to get every vehcile and every ped in an Area.Problem is, I don't want to get Peds in Vehicles and best would be if I could only get cars whiche could be seen (means they don't need to be in camera sight, but not behind a wall).(Same goes for the Peds). I know this is a diffcult task and I appreciate any help Regards No.regerds Edited February 5, 2016 by no.regerds Link to post Share on other sites
no.regerds 0 Posted February 5, 2016 Author Share Posted February 5, 2016 Ok, I got all Peds and Vehicles ... But i'm still struggling with those behind a corner. I don't want to get them just the Objects in a line of sight Link to post Share on other sites
Solution Skorpro 129 Posted February 10, 2016 Solution Share Posted February 10, 2016 I got all Peds and Vehicles ... But i'm still struggling with those behind a corner. I don't want to get them just the Objects in a line of sight Hmmm, no idea if it works but you can try this natives: Camera cam;GetRootCam(&cam);if (!CamIsSphereVisible(cam, x, y, z, radius))// ...// or...if (IsCharVisible(ped)) Aber ich glaub' nicht, dass das funktioniert Link to post Share on other sites
no.regerds 0 Posted March 1, 2016 Author Share Posted March 1, 2016 Hi thanks for the reply, It did work in combination with "HAS_CHAR_SPOTTED_CHAR" ...It's not 100% accurate but it will do it :-) Link to post Share on other sites