joshk326 Posted June 23, 2016 Share Posted June 23, 2016 So I was wondering if there is a way i could attach my spawned object to a vehicle, and keep all of its rotation and stuff instead of it being in a fixed position. Another way of saying this is allow to move the attached object but still have it attached. Here's my code: ATTACH_ENTITY_TO_ENTITY(SpawnedObj, vehicle, 0, enityCoords.x, enityCoords.y, enityCoords.z, enityRot.x, enityRot.y, enityRot.z, 0, 0, 1, 1, 2, 0); so what this does is attaches my already spawned object to the car but keeps the position values i changed. My problem is when i do this the object just disappears and I'm not sure why. Link to comment Share on other sites More sharing options...
AHK1221 Posted June 23, 2016 Share Posted June 23, 2016 why not get the offset of the vehicle from the world coords, passing in your objects position. Then use that info in the native Link to comment Share on other sites More sharing options...
joshk326 Posted June 23, 2016 Author Share Posted June 23, 2016 why not get the offset of the vehicle from the world coords, passing in your objects position. Then use that info in the native not a bad idea ill give it a try and keep you posted 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