fxAddWaterHydrant
Client-side
Server-side
Shared
This function creates a water hydrant particle effect.
OOP Syntax Help! I don't understand this!
- Method:Effect.addWaterHydrant(...)
Syntax
bool fxAddWaterHydrant ( float posX, float posY, float posZ )Required Arguments
- posX: A float representing the X position of the hydrant.
- posY: A float representing the Y position of the hydrant.
- posZ: A float representing the Z position of the hydrant.
Returns
- bool: result
Returns a true if the operation was successful, false otherwise.
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)
