Hi all.
I'd like to use some functions included in the engine_const header file.
How to use for example :
Code:
define IN_ATTACK (1<<0)
#define IN_JUMP (1<<1)
#define IN_DUCK (1<<2)
#define IN_FORWARD (1<<3)
#define IN_BACK (1<<4)
#define IN_USE (1<<5)
#define IN_CANCEL (1<<6)
#define IN_LEFT (1<<7)
#define IN_RIGHT (1<<8)
#define IN_MOVELEFT (1<<9)
#define IN_MOVERIGHT (1<<10)
#define IN_ATTACK2 (1<<11)
#define IN_RUN (1<<12)
#define IN_RELOAD (1<<13)
#define IN_ALT1 (1<<14)
#define IN_SCORE (1<<15)
Here's an extract of my code in which i'd like to use that.
Code:
#define IN_DUCK
#define IN_JUMP
new buttona = EV_INT_button
if (buttona=IN_JUMP)
buttona=IN_DUCK
So the players would be supposed to duck instead of jumping...
It compiles fine, but nothing happens.
I added that line to check the value of "buttona".
Code:
show_hudmessage(0,"%i",buttona)
But it returns the number "4" whatever the IN_DUCK, JUMP, ...
Any help would be appreciated ;)