Results 1 to 4 of 4
  1. #1

    Default exec function Jump()

    Hello,

    I am somewhat new to the UDK, but I followed the ball's tutorial on making a small and simple game. It works beautifully, so I tried to modify the jump function so I may add my code to allow the player to fly(eventually). Myplayercontroller is active, and it let's me override other functions like startfire. However, exec function jump() is seemingly never called. I can't post full code atm becuase I am at work, but this is the basic definition:

    exec function Jump()
    {
    ClientMessage("jump!");
    }


    I am stumped as to why startfire works but not jump? My first post was in the wrong section under documentation lol, full code is there. Any ideas?

  2. #2
    Veteran
    Join Date
    May 2007
    Location
    Above KillZ, Below StallZ
    Posts
    9,986

    Default

    Because jump() is not actually used. The controller calls DoJump() on the pawn, when the jump button is pressed.
    http://www.ericbla.de http://www.dungeondefenders.com http://en.wikipedia.org/wiki/Warm_Gun http://www.rekoil.com http://www.groundbranch.com

    - Please don't send me private messages asking programming questions, those would be better asked on the Programming forum here. Thanks

  3. #3
    MSgt. Shooter Person
    Join Date
    Feb 2009
    Location
    Germany / NRW
    Posts
    189

    Red face

    Hey, I didn't find any other thread about this issue so im asking here: what do I have to put into my PlayerController state to override the functionality that is bound to Jump? For now I created a custom exec function and bound Jump AND my custom function to my jump key but that's stupid.

    Code:
    state Bla
    
    exec function Jump()
    	{
    		`log("Nope.");
    	}
    Working on a spiritual successor to Unreal II's eXpanded MultiPlayer: UDK:XMP

  4. #4

    Default

    You should override functionality in PlayerInput instead. That's where the current Jump() function is.
    Need an online game service for your project? Check out Sagittarius! For more info you can visit the Sagittarius Wiki or the project page on my blog.

    My Blog: WillyG Productions - Your Premiere UDK Resource
    My YouTube Channel: WillyG Productions
    My Facebook Page: WillyG Productions
    My GitHub: willyg302


 

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Copyright ©2009-2011 Epic Games, Inc. All Rights Reserved.
Digital Point modules: Sphinx-based search vBulletin skin by CompletevB.com.