PreEvent player_jump
Posted: Mon Dec 28, 2015 3:30 am
Hi there,
I cannot seem to use the @PreEvent decorator to hook the 'player_jump' event in CSGO. When I use the below:
I receive 'Jump' in console everytime I jump, but this is of course a post hook. When I use the below code:
I never receive any output in console and it appears that the function is never run. Other pre hooks run fine (I tested player_spawn, player_death pre events). This is on SP version 205.
I cannot seem to use the @PreEvent decorator to hook the 'player_jump' event in CSGO. When I use the below:
Syntax: Select all
@Event('player_jump')
def jump_event(game_event):
print('Jump')
I receive 'Jump' in console everytime I jump, but this is of course a post hook. When I use the below code:
Syntax: Select all
@PreEvent('player_jump')
def jump_event(game_event):
print('Pre Jump')
return EventAction.CONTINUE
I never receive any output in console and it appears that the function is never run. Other pre hooks run fine (I tested player_spawn, player_death pre events). This is on SP version 205.