Weather Changing

General talk about editing, cheating, and deprotecting maps.

Moderator: Cheaters

Dark_coolness
Junior Member
Posts: 34
Joined: August 12th, 2008, 9:35 pm

Weather Changing

Post by Dark_coolness »

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.
User avatar
Aero
Forum Staff
Posts: 829
Joined: January 28th, 2007, 8:10 pm
Title: JASS Programmer
Location: Canada

Re: Weather Changing

Post by Aero »

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:

Code: Select all

function EnableWeatherEffectForPlayer takes weathereffect whichEffect, player forPlayer, boolean enable returns nothing
if GetLocalPlayer()==forPlayer then
     call EnableWeatherEffect(whichEffect,enable)
endif
endfunction
Dark_coolness
Junior Member
Posts: 34
Joined: August 12th, 2008, 9:35 pm

Re: Weather Changing

Post by Dark_coolness »

thank you.