4
edits
ExtremeCode (talk | contribs) (Initial functions from Useful_Functions.txt) |
ExtremeCode (talk | contribs) m (Added ToggleMuteMusic(), SetOutfit( number )) |
||
| Line 25: | Line 25: | ||
;<nowiki>game:netGui():ToggleEnabled()</nowiki> | ;<nowiki>game:netGui():ToggleEnabled()</nowiki> | ||
:Turns on the NetGui HUD, which shows other players in the same "lobby" for the current level and lets you try to manually connect to them (might only be able to show up to 4, even if there are others you can connect to), or shows your current companion. You can move up/down in this menu with W/S, and select something by running game:netGui():ExecuteSelectedItem(game). It seems you still need to be nearby a player and have the same lobby flags triggered to connect to them, or at least to stay connected. | :Turns on the NetGui HUD, which shows other players in the same "lobby" for the current level and lets you try to manually connect to them (might only be able to show up to 4, even if there are others you can connect to), or shows your current companion. You can move up/down in this menu with W/S, and select something by running game:netGui():ExecuteSelectedItem(game). It seems you still need to be nearby a player and have the same lobby flags triggered to connect to them, or at least to stay connected. | ||
;<nowiki>game:playerBarn():GetLocalDude():SetOutfit( number )</nowiki> | |||
:Can be run with any number 0-6 | |||
::0, 1, 2, 3 are red robe tiers 1, 2, 3, 4 | |||
::4, 5, 6 are white robe tiers 2, 3, 4 | |||
;<nowiki>game:playerBarn():GetLocalDude()/GetRemoteDude():GetAnimBarn():QueueAnimation( animName, blendIn, blendOut, animSpeed, numLoops, duration )</nowiki> | ;<nowiki>game:playerBarn():GetLocalDude()/GetRemoteDude():GetAnimBarn():QueueAnimation( animName, blendIn, blendOut, animSpeed, numLoops, duration )</nowiki> | ||
:Can play any animation defined in animDatas table in DudeAnimation.lua , but it seems to only be visible in your own game. LocalDude is you, RemoteDude is your companion(might only work while they are hijacked by "Nick"). :Documentation from DudeAnimation.lua: "blendIn, blendOut, and duration are in seconds. to use duration, set numLoops = 0, otherwise it will be ignored. you can set numLoops < 0 to fit a certain number of complete loops in a duration. you can set duration to be a negative number if you want it to keep playing until you stop it." | :Can play any animation defined in animDatas table in DudeAnimation.lua , but it seems to only be visible in your own game. LocalDude is you, RemoteDude is your companion(might only work while they are hijacked by "Nick"). :Documentation from DudeAnimation.lua: "blendIn, blendOut, and duration are in seconds. to use duration, set numLoops = 0, otherwise it will be ignored. you can set numLoops < 0 to fit a certain number of complete loops in a duration. you can set duration to be a negative number if you want it to keep playing until you stop it." | ||
;<nowiki>game:soundBarn():ToggleMuteMusic()</nowiki> | |||
:Toggles game music ON / OFF | |||
;SpawnEvent{ triggertype = { var1 = a, var2 = b, etc } } | ;SpawnEvent{ triggertype = { var1 = a, var2 = b, etc } } | ||