Jump to content

Water emitter on vehicle


Recommended Posts

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.

  • Like 1
Link to comment

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...