generated from ShadowMario/FNF-PsychEngine
-
Notifications
You must be signed in to change notification settings - Fork 1
Home
Mayo78 edited this page Feb 15, 2023
·
3 revisions
Welcome to the FNF-PsychEngine-BambiAddon wiki!
make a folder called what you want your state to be called
add a script/scripts inside the new folder
use switchState to go to your custom state!
make a script file for the specific state you want (for an option use optionsstate, for a gameplay changer use freeplaystate
under the correct callback (option: onOptionsAdded(title), gameplay changer: getOptions()) use either addOption or addGameplayChanger
there isnt a set lua script for each option/gameplay changer, so i would recommend making a global script or state specific script for options and gameplay changers
--optionshandler.lua
function onCreate()
if getClientPref 'lua_option' then
debugPrint 'using lua option!'
end
if getGameplayChanger 'coolmode' and curState == 'playstate' then
debugPrint 'cool mode activated'
end
end