11.10.2011, 22:46
Hi,
I have a problem.
I want to create a firefighter class in my gamemode but I don't know how I can detect where you're spraying the water-cannon on top of the firetruck.
I can create the fire-objects, that's no big deal.
But instead of just driving to some location (checkpoint perhaps) and extinguising the fires one by one in code, I want to make it so the player has to actually spray the water onto the fire-object.
I want to detect if the water hits the fire-object (or do a distance-check or whatever) to extinguish the fire.
Is this even possible?
I have a problem.
I want to create a firefighter class in my gamemode but I don't know how I can detect where you're spraying the water-cannon on top of the firetruck.
I can create the fire-objects, that's no big deal.
But instead of just driving to some location (checkpoint perhaps) and extinguising the fires one by one in code, I want to make it so the player has to actually spray the water onto the fire-object.
I want to detect if the water hits the fire-object (or do a distance-check or whatever) to extinguish the fire.
Is this even possible?