M MY Multiplayer: Wiki
Side
Kind

engineRemoveEffects

Client

Removes the effects this resource added from a file with engineAddEffects.

bool engineRemoveEffects(string path)

Parameters

NameTypeDescription
pathstringThe same path given to engineAddEffects.

Returns

true if any effect was removed, false if this resource did not add that file.

Effects of the same name that were covered answer again. A resource's effects also go when it stops.

Example

engineAddEffects("effects/neon.xml")
addCommandHandler("noneon", function()
    engineRemoveEffects("effects/neon.xml")
end)

See also