Gildoran on 20/4/2005 at 08:24
I've heard people saying that it'd be useful to be able to detect when the player crouches. I had an idea for a way to do this implicitly, though it's a bit of a kludge, and incomplete... Unfortunately, I'm still learning my way around the editor, so I haven't tried constructing it yet, but it's as follows:
Attach a marker of some sort to the player's head, and to the player's foot/feet (or maybe origin if that's possible?), and use the following condition to test when they get close to eachother:
While linked object(s) [LinkFlavor] are within [Float] unreal units from linked object(s) [LinkFlavor]
I have no idea how well/badly this would work, but it's an idea. Maybe there would be some way of taking both feet into account. The downside to this idea is I don't see an easy way to detect when the player stops crouching, other than polling.
Ziemanskye on 20/4/2005 at 10:36
Not one I've checked up either, but if you're doing it with trigger scripts don't we have a value like bIsCrouched on Garrett? You just ask is the value True.