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?
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.
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
Comments