Results 1 to 3 of 3
  1. #1
    The Sacrifice
    Join Date
    Jun 2012
    Posts
    198

    Question What is the "name" of the player in Unreal Script ?

    Hey, I am trying to code a bot which run directly to the player wherever he is, so I started to get my hands on the mess and use the MoveToward function, but I need the actor for that. Though I could get the player into a variable via an event, I want the bot to rush the player even if it can't see nor hear him.

    So I need to get him directly into a variable, like Target=UDKPlayer0 or something like that.

    Thanks

  2. #2
    Deathless
    Join Date
    Jun 2010
    Location
    Germany
    Posts
    2,293

    Default

    the actor (pawn) of the player can be gotten with GetALocalPlayerController().Pawn

  3. #3
    The Sacrifice
    Join Date
    Jun 2012
    Posts
    198

    Default

    Oh yeah thanks I'm going to try that !


 

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.