Hi, im starting to work with UnrealScript and for test and learn i'm developing some movement improvements. Begun with a running system, then a walljump using hitwall and now i'm tryng to use NotifyFallingHitWall to detect, by example, when someone failed a walljump.
I spent some hours searching for NotifyFallingHitWall info unsuccesfully. And i'm not able to make this code work:
It is not full source, just the relevant code. Well, everything on the game seems to work ok unless this. I jump, hit and fall against the test map cube and the event is never called.Code:Class GlossController extends UTPlayerController; simulated event NotifyFallingHitWall(vector HitNormal, actor Wall) { `log("Test"); } defaultproperties { bNotifyFallingHitWall=true }
Tired of making test, i tried this on the Pawn code:
But trying to fall against the cube some times and in the log the message only appears once. Then i retry, open the game, used walljump to climb and then fall back against the cube... closed and nothing on the log. Not hitwall and falling nor notifyfall..Code:simulated event HitWall( vector Norm, actor HitActor,PrimitiveComponent Prim ) { if (Physics != PHYS_Falling) { `log("Falling y tropezandOOOOOOOOOOOOOOOOOOOOOOOOOOOO"); }
I think i'm missing something... any clue? thanks



Reply With Quote



Bookmarks