Editing and Customization > Modding Help

How Do I Find Out What Variables Are Passed For Each Event Hook?

(1/1)

Phivex:
I can find out the number of parameters and their values when registering a new hook. All I have to do is tell the hook to call a function with a single parameter. It'll error out and say it expected X number of parameters but only found one. I can then change it to take X parameters and then output the values to the console with GEUtil.Msg(), but those values mean nothing to me without knowing what they represent.

killermonkey:
The variables are the same that would be passed to the corresponding gameplay function. Usually its no variables.

Most variable types print out a meaningful message when you just: print( variable )

Navigation

[0] Message Index

Go to full version