I am making a map and i want it so when a red types "-snow"
it will make it snow for that red and if blue does it will for blue and so on
like it does in dota and also "-rain" if possible turn it off to,
if you could help thanks.
Weather Changing
Moderator: Cheaters
-
- Forum Staff
- Posts: 829
- Joined: January 28th, 2007, 8:10 pm
- Title: JASS Programmer
- Location: Canada
Re: Weather Changing
First, you need to make weather effects that encompass the entire map (Then make sure they are all disabled).
Then, use this function to turn them on/off for a specific player:
Then, use this function to turn them on/off for a specific player:
Code: Select all
function EnableWeatherEffectForPlayer takes weathereffect whichEffect, player forPlayer, boolean enable returns nothing
if GetLocalPlayer()==forPlayer then
call EnableWeatherEffect(whichEffect,enable)
endif
endfunction
-
- Junior Member
- Posts: 34
- Joined: August 12th, 2008, 9:35 pm
Re: Weather Changing
thank you.