Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #Conditional Hooks
- $Application: FS2_Open
- $State: GS_STATE_GAME_PLAY
- $On Frame: [
- --tweakables!
- posX,posY = 10,50
- --print stuffs
- function print_vars()
- if printSexpVars then
- gr.drawString("Sexp Var Name: Value, Type, Persistence", posX, posY )
- for i=1, #mn.SEXPVariables do
- local var = mn.SEXPVariables[i]
- if var:isValid() then
- gr.drawString( tostring(var)..": "..tostring(var.Value)..", "..tostring(var.Type)..", "..tostring(var.Persistence) )
- end
- end
- end
- end
- ]
- $Application: FS2_Open
- $On Gameplay Start: [
- printSexpVars = false
- ]
- $State: GS_STATE_GAME_PLAY
- $On Key Pressed:
- [
- if hv.Key == "Alt-2" then
- if printSexpVars then
- printSexpVars = false
- print_vars()
- elseif not printSexpVars then
- printSexpVars = true
- print_vars()
- end
- end
- ]
- #end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement