Disabling a key

thompsonjm22thompsonjm22 Member Posts: 15
edited January 2012 in Working with GS (Mac)
I'm attempting to disable a player from performing an action when a particular attribute is true or false. For example, if a player is currently in the air he cannot "shoot". Any ideas?

Comments

  • poopdecksweeperpoopdecksweeper Member Posts: 180
    make an inAir attribute, and say that when actor position is above a given point on the Y axis then change attribute inAir to true. after that you have to constrain the bullets to the inAir attribute. You probably have to connect that logic to the shooter or the actual shot. mess around with it and see what you get.
  • flapairflapair Member Posts: 67
    jut make that if he is overlapsing or colliding with the ground then put all behaivor he can do while on ground, then on the otherwise you put nothing and the jump i suggest you put outside of the rule
Sign In or Register to comment.