ivan8065 Posted July 9, 2023 Share Posted July 9, 2023 Hello, I would like to ask if it's possible to create and attach something like water emitter on vehicle (like on firetruck) and ideally if it could extinguish fires. Thank you for reply. Link to comment
DiSaMe Posted July 11, 2023 Share Posted July 11, 2023 There's no functionality for creating water emitters, but I just had an idea for a workaround: you can create a fire truck, make it invisible (using setElementAlpha) and collisionless (setElementCollisionsEnabled), create a ped (createPed), put it into the fire truck (warpPedIntoVehicle) and have it use the water cannon (setPedControlState with vehicle_fire control). If you want to attach it to a vehicle, you can attach the fire truck itself with attachElements. To move/rotate the water cannon around, you can change the position/rotation of the fire truck and/or use setVehicleTurretPosition. You may have to take some further measures to hide the fact that it's a separate vehicle, like disabling the damage (setVehicleDamageProof), preventing players from entering it (cancelEvent in onVehicleEnter event) and whatever else you can think of. 1 Link to comment
ivan8065 Posted July 13, 2023 Author Share Posted July 13, 2023 Hmm, interesting. I could try that. Thank you for tip. Link to comment
Yeleha Posted July 14, 2023 Share Posted July 14, 2023 Also adding a shader to make the vehicle shadow invisible 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