..:D&G:.. Posted May 26, 2016 Posted May 26, 2016 So I want to create my own vehicle customization system instead of using addVehicleUpdate. The problem is using attachElements the object attached to the vehicle does not update the rotation when the vehicle turns... So, is there any way I can make it rotate while the vehicle rotates? Thank you
Rataj Posted May 26, 2016 Posted May 26, 2016 I think "attachElements" actually does that.. Which type of element are you attaching, Object?
..:D&G:.. Posted May 26, 2016 Author Posted May 26, 2016 I think "attachElements" actually does that..Which type of element are you attaching, Object? I am trying to attach an object to the vehicle. I know I 've tried this function with a player and an NPC, and whenever I turned arround, the NPC was still facing north
Rataj Posted May 26, 2016 Posted May 26, 2016 [quote name=..&G:..] I think "attachElements" actually does that..Which type of element are you attaching, Object? I am trying to attach an object to the vehicle. I know I 've tried this function with a player and an NPC, and whenever I turned arround, the NPC was still facing north I know this is happening with peds sometimes, but objects worked for me. Around two months ago I was making script to attach boxes on truck and rotation was updating well. Maybe try to fill rotation offset arguments. Updating rotation manually on render would be fix, but not very clean one.
Captain Cody Posted May 26, 2016 Posted May 26, 2016 Oh sweet a person I can compete with when it comes to custom vehicle modding scripts.
Moderators IIYAMA Posted May 27, 2016 Moderators Posted May 27, 2016 [quote name=..&G:..] I think "attachElements" actually does that..Which type of element are you attaching, Object? I am trying to attach an object to the vehicle. I know I 've tried this function with a player and an NPC, and whenever I turned arround, the NPC was still facing northAttach objects should be fine, unless there is something(a script) interfering. In 2015 I released a train script. It attaches perfect with that function.
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