Log in

View Full Version : Gary #4



AHrEJl
09-13-2012, 04:58 AM
Dear dev, plz explaine some lines about how turn on weather, server time and etc...

We need test new features, but dont know how.

Mb some little examples for scripters. Thx u.

Volumed
09-13-2012, 08:34 AM
agree able, Gary 4 is no bugfix or a 2.4 with so many new features you are rushing it Recycler with all respect.

foxtacles
09-13-2012, 04:55 PM
Should be fairly straightforward. I'll write documentation once I have some time for it.

SetGameWeather - changes the in-game weather. See https://www.vaultmp.com/showthread.php?1415-Idle-animations-weather-race
SetGameTime - changes the in-game time. The parameter is 64bit unixtime
SetGameYear - changes the year
SetGameMonth - changes the month
SetGameDay - changes the day
SetGameHour - changes the hour
SetTimeScale - changes how fast the in-game time progresses. The parameter is in-game seconds per real time second, i.e. 1.0: in-game time is as fast as real time, 0.0: the time stands still
SetActorBaseRace - changes the race for an actor base. See https://www.vaultmp.com/showthread.php?1415-Idle-animations-weather-race
AgeActorBaseRace - only a convenience function. Changes the race to younger/older race of the current race
SetActorBaseSex - changes sex. True: female

And there are also Get* functions. By default, weather is "DefaultWeather", everyone has the natural sex/race of the base chosen in OnPlayerRequestGame and time is UTC real time speed.