fxAddWaterHydrant
Client-side
Server-side
Shared
This page is incomplete! Help wanted!
Please finish this page using the corresponding Old Wiki article.
Go to Contribution guidelines for more information.
This function creates a water hydrant particle effect.
Syntax
fxAddWaterHydrant ( )Code Examples
client
This example will create 20 water hydrant effects around the players position when they use the command: hydrantmania.
function createHydrants() local x, y, z = getElementPosition(localPlayer) -- Get your location. for i=0, 20 do -- 20 Hydrants. fxAddWaterHydrant(x + math.random(-5,5), y + math.random(-5,5), z) -- Using math.random, and your current location 20 water hydrants are created. endendaddCommandHandler("hydrantmania", createHydrants)