GoldenEye: Source Forums

  • October 14, 2019, 12:05:50 am
  • Welcome, Guest
Advanced search  

News:

Pages: [1]   Go Down

Author Topic: How Do I Find Out What Variables Are Passed For Each Event Hook?  (Read 1735 times)

0 Members and 1 Guest are viewing this topic.

Phivex

  • Agent
  • *
  • Posts: 21
  • Reputation Power: 3
  • Phivex has no influence.
  • Offline Offline
How Do I Find Out What Variables Are Passed For Each Event Hook?
« on: September 20, 2016, 08:02:50 am »

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.
Logged

killermonkey

  • GES Programmer
  • Retired Lead Developer
  • GE:S Fanatic
  • *
  • Posts: 5,474
  • Reputation Power: 346
  • killermonkey is awe-inspiring!killermonkey is awe-inspiring!killermonkey is awe-inspiring!killermonkey is awe-inspiring!killermonkey is awe-inspiring!killermonkey is awe-inspiring!killermonkey is awe-inspiring!killermonkey is awe-inspiring!killermonkey is awe-inspiring!killermonkey is awe-inspiring!killermonkey is awe-inspiring!killermonkey is awe-inspiring!
  • Offline Offline
    • DroidMonkey Apps
Re: How Do I Find Out What Variables Are Passed For Each Event Hook?
« Reply #1 on: September 20, 2016, 02:35:36 pm »

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 )
Logged
Pages: [1]   Go Up