Results 1 to 6 of 6
  1. #1
    Palace Guard
    Join Date
    Feb 2010
    Location
    Tegleg Records
    Posts
    3,785
    Gamer IDs

    Gamertag: tegleg digital

    Default how to make a bot look at something?

    to make the controller look at an actor

    anyone?

    cheers
    Code:
    We.spazmodicaly.simulate.new.sound.with.technical.equipment.that.is.specificaly.manufactured.for.humans.to.communicate.in.outer.space.Tegleg.manipulates.time.and.space.to.create.new.experiences.to.generate.a.hardcore.database.generation.
    LOOK>> Please ask questions in the forum, NOT a private message <<LOOK
    tegleg.co.uk
    My Tutorials n Stuff
    Games: Tegs Playground - Unwheel2 - VCTF Game - Sponic Mesh 3D - Shh.. dont tell anyone about my android apps.
    will code for money

  2. #2
    Palace Guard
    Join Date
    Aug 2008
    Location
    Location,Location
    Posts
    3,764

    Default

    In controller

    Code:
    var		Actor							Focus;							// actor being looked at
    I don't see it being used anywhere though.

  3. #3
    Marrow Fiend
    Join Date
    Jun 2009
    Posts
    4,502

    Default

    That's used in MoveTo I believe.

  4. #4
    Palace Guard
    Join Date
    Aug 2008
    Location
    Location,Location
    Posts
    3,764

    Default

    Thats what i thought too, what i do to make a bot look at my pawn is this

    Code:
     foreach VisibleCollidingActors (class'MainPawn',Player1, 2000)
                            {
                                Pawn.SetDesiredRotation(Rotator(Normal(Player1.Location)));
                                PlayerCon.MadeNoise = false;
    
                                //** Going to state idle will allow for the pawn to "SEE" the player when the zombie turns around.
                            }

  5. #5
    Palace Guard
    Join Date
    Feb 2010
    Location
    Tegleg Records
    Posts
    3,785
    Gamer IDs

    Gamertag: tegleg digital

    Default

    brilliant!
    thanks TheAgent
    and everyone else
    Pawn.SetDesiredRotation(Rotator(Normal(Player1.Loc ation)));
    that works
    i tried SetDesiredRotation but couldnt get it to work
    Normal is what i missed

    Focus didnt work for me
    Code:
    We.spazmodicaly.simulate.new.sound.with.technical.equipment.that.is.specificaly.manufactured.for.humans.to.communicate.in.outer.space.Tegleg.manipulates.time.and.space.to.create.new.experiences.to.generate.a.hardcore.database.generation.
    LOOK>> Please ask questions in the forum, NOT a private message <<LOOK
    tegleg.co.uk
    My Tutorials n Stuff
    Games: Tegs Playground - Unwheel2 - VCTF Game - Sponic Mesh 3D - Shh.. dont tell anyone about my android apps.
    will code for money

  6. #6
    Palace Guard
    Join Date
    Aug 2008
    Location
    Location,Location
    Posts
    3,764

    Default

    No problem : }


 

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.