GoldenEye: Source Forums

Editing and Customization => Modding Help => Topic started by: Phivex on September 20, 2016, 07:02:50 pm

Title: How Do I Find Out What Variables Are Passed For Each Event Hook?
Post by: Phivex on September 20, 2016, 07:02:50 pm
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.
Title: Re: How Do I Find Out What Variables Are Passed For Each Event Hook?
Post by: killermonkey on September 21, 2016, 01:35:36 am
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 )