e neardist standtime standing ducktime incover_init Initialization Function how close player can get before we stand up neardist 600 how long we stand up for standtime 1450 how long we duck down for ducktime 450 character starts game ducked down standing 0 e e incover_main Main Function if player is in neardist range LT e neardist if this AI is the one standing (allows multiple AI to run same script) EQ standing e if AI still has standing time left to use LT e standtime fire at player e e standing up time is done so trigger a duck down e standing 0 e this isn't the AI currently stood up if duck time still available to use LT e ducktime don't do anything (stay ducked) ducking time is over so trigger standing back up e if no AI currently standing then we should stand up EQ standing 0 standing e e play sound in slot 1 e 1 player not nearby so keep timer at 0 and reset to ducked if needed e EQ standing e standing 0 e incover_exit Exit Function play sound in slot 2 if AI dies e 2 if AI was the one standing up then reset to 0 so others can still stand up EQ standing e standing 0