HIHIHI Posted January 18, 2019 Share Posted January 18, 2019 So, I am thinking of writing a mutator that will allow vehicle drivers to hand over control of the turret to a passenger in the second seat, as I think this could make for more fluid tank battles. I am thinking that the way to go about this would be to have a state to be in when the driver is in control and a state to be in when the passenger is in control (Or maybe just a bool and an IF statement?), switching between them at the driver's discretion. Then in whatever state the vehicle is in, it will call the function/functions required for turning the turret and firing the weapon for the proper player. Each seat would have a weapon of the same class, but the occupant would only be able to control it when the state (or bool) is right. Basically what I need to know (I think) is this: what function/functions are used to control weapon firing and turret rotation? Or at least, which class are they in? I've looked around, but I'm really not sure which functions are doing these things, especially turret rotation. I have a feeling it's GetWeaponAimWithOptionalPredefinedAimPoint(UTVehicleWeapon VWeapon, vector AimPoint), in Rx_Vehicle, but I'm not sure. Thanks, HIHIHI 1 1 Quote Link to comment Share on other sites More sharing options...
Totem Arts Staff NodSaibot Posted January 18, 2019 Totem Arts Staff Share Posted January 18, 2019 You'd probably just want to edit the seats in the vehicle. Move the weapon to the other seats at runtime, and allow it to move between seats.. Quote Link to comment Share on other sites More sharing options...
HIHIHI Posted January 18, 2019 Author Share Posted January 18, 2019 Ok, I wasn't aware that would work. I had thought that seat properties were unchangeable once running. This could simplify things a bit. : ) Thanks! Quote Link to comment Share on other sites More sharing options...
Totem Arts Staff NodSaibot Posted January 18, 2019 Totem Arts Staff Share Posted January 18, 2019 I mean, the code probably isn't ready to have them changed, so you'll have to write stuff to allow that to happen. If you want more detailed responses and help, feel free to download Discord and PM me. 1 Quote Link to comment Share on other sites More sharing options...
HIHIHI Posted January 18, 2019 Author Share Posted January 18, 2019 Ok, thanks for the offer! I'll let you know if I get stuck! Rating: 20/10 prompt reply. : ) Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.