Drakath Posted June 9, 2014 Share Posted June 9, 2014 Is there any way to check if an element is stuck in another object? Like a vehicle stuck in the wall. Link to comment
Max+ Posted June 9, 2014 Share Posted June 9, 2014 Well Maybe this ? isElementAttached Link to comment
Drakath Posted June 9, 2014 Author Share Posted June 9, 2014 No, I mean if you enter wrong coordinates to spawn a vehicle and it spawns into some wall, how can I check if it is stuck in there? Link to comment
tosfera Posted June 9, 2014 Share Posted June 9, 2014 I'm not sure but a quick search on the wiki gave me the following functions. Maybe it's possible using them to achieve what you want; getPedTargetCollision getGroundPosition Link to comment
Den. Posted June 9, 2014 Share Posted June 9, 2014 I believe it's not possible to do it server-side unless you have fixed positions in which you retrieved yourself; Client-side you can possibly do it using processLineOfSight, but you will need a player in stream range of the position the vehicle spawned in. Link to comment
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