Page 1 of 1
Ledge checking in PlayerPawn
Posted: Wed Mar 02, 2011 7:54 am
by ShinDarkfox
Now, I'm not too sure here, but I've been looking through the code involving everything pawn and playerpawn and haven't found yet the way the game checks if your at a drop point. I mean, at the edge, not falling but close to it. I've attempted using "Function MayFall()" which is called by the engine itself, but didn't play the animation I wanted unless I'm doing it wrong (placed in group "Waiting"), does however do the test message "I am about to fall!" so I'm guessing it ignores the call to play the animation due to PlayWaiting. Anything I can add in the PlayWaiting function instead or is it purely in "MayFall"? I would consider a boolean flag (e.g. bEdgeStepping) but I wouldn't know how to unset it unless I had everything from PlayWalking to PlayInAir to unset it. Any ideas?
Re: Ledge checking in PlayerPawn
Posted: Wed Mar 02, 2011 10:47 am
by Mewtwo
21351235
Re: Ledge checking in PlayerPawn
Posted: Wed Mar 02, 2011 6:09 pm
by .:..:
Ledge checking is all handled in C++ codes so you won't find it in UnrealScript.
Whatever it's checking or not depends on Pawn.bIsWalking.
Re: Ledge checking in PlayerPawn
Posted: Wed Mar 02, 2011 8:25 pm
by ShinDarkfox
Just tested the MayFall event further, seems to just be when it is JUST starting to fall rather than at the edge. Well, gee. And I looked around for bIsWalking in Pawn and PlayerPawn to no avail, so it seems this would not be an easy task as I once thought.
Since it is all checked by the engine itself (in C++ I'm assuming means, in the source code) then I guess there would be no way to do this without some trouble. Well, wasn't much I had planned other than a silly "Woah!" to test if it works.