yvadfulck Posted July 22, 2015 Share Posted July 22, 2015 hey guys, i get this crash when doing following stuff : picking up an item with forklift then setting a moveObject on the item ( to simulate for ex : drop off on conveyor) the element is attached (logic) to the forklift but don't dettach automaticly by using moveObject. now my question : is there a specific function to see if the element is still attached or is there any way to get the curent state of the forks(for ex. forkliftstate = up or down) i tried isElementAttached but it dont seem to give back the good value for the element on forklift Link to comment
anumaz Posted July 22, 2015 Share Posted July 22, 2015 You need to use isElementAttached() with the object you put on the forklift. It'll return either true or false if it's attached. It won't detach automaticly. You need to use https://wiki.multitheftauto.com/wiki/DetachElements Link to comment
yvadfulck Posted July 22, 2015 Author Share Posted July 22, 2015 You need to use isElementAttached() with the object you put on the forklift. It'll return either true or false if it's attached. It won't detach automaticly. You need to use https://wiki.multitheftauto.com/wiki/DetachElements as i said isElementAttached() not giving correct value Link to comment
yvadfulck Posted July 22, 2015 Author Share Posted July 22, 2015 i did find the crashreason... but still, it would be usefull to have such build in functions towards the forklift's Link to comment
Dealman Posted July 23, 2015 Share Posted July 23, 2015 As far as I'm aware there is absolutely no way at all to check if the Forklift has an object attached to its forks(I was trying to do this a while ago myself). The only workaround I can think of would be to manually attach the object to the forklift using attachElements. I guess you could use collision spheres to check if the forklift is in range of the object. It would be nice if they could create some functions for us to see whether or not the Forklift has an object attached, and then let us detach it. Link to comment
yvadfulck Posted July 30, 2015 Author Share Posted July 30, 2015 tnx dealman at least i know im not overlooking some usefull function there 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