Titan Games's Forum Posts

  • You do not have permission to view this post

  • Thanks!

  • I have many items on top of each other (Or near)

    Then I have (player character) When Player Character overlap (Object)

    then object auto pins (object) to player.

    but its pins all objects at once. Im trying to get it to where only 1 item pins to character at a time.

    That item gets destroyed when bought back to a base. When character goes back to pile, another item should pin to him because he does not have anything pinned

    Any ideas on how to achieve this?

  • You do not have permission to view this post

  • Titan Games The example I posted earlier in the thread does what you are trying to do. You only need to replace the event that assigns the UID with your On Touch event, and the event that removes the target when it is destroyed to remove the target when line of sight is lost.

    Im so dumb you posted this in the beginning and I wasnt paying attention! This is exactly what I needed! Thanks man!

  • Not really understanding the question because your logic is not to follow by UID but to find path on the enemy that is clicked? Clicking the enemy picks it so you can find a path. To find by UID would be something like condition enemy.UID=num, find path to enemy but with a trigger once added.

    Im trying to achieve something like, Player stores enemy UID to Variable [FOLLOWEnemyUID] on touch

    If enemy UID equal to Player.FOLLOWEnemyUID

    Every Tick - Player Find path to the specific Enemy with that UID

    but it doesnt work

  • Not really understanding the question because your logic is not to follow by UID but to find path on the enemy that is clicked? Clicking the enemy picks it so you can find a path. To find by UID would be something like condition enemy.UID=num, find path to enemy but with a trigger once added.

    I got it to Follow from a distance how I want it but if there is another enemy near, eventually he follows that one gyazo.com/90e82733a4edd2b11324198b90904390

    I want him to follow the same enemy unless lost of sight or clicked off

    I used 2 different lineofsight behaviors, its works but as said it starts following the other

    gyazo.com/d91c9c9cbd4ad5cc9563997c67bf7ab0

    So maybe it would be possible to follow the enemy by UID?

    I tried this, not sure if its correct, doesnt work

    gyazo.com/eb1739d9dbb9d431e31a6ec1a137b0ac

    gyazo.com/c1d237344164ba5069f1d3568ff71a4c

    Was looking into enemy.UID=num ? Im not sure what you mean

  • thx for the response

    like this right gyazo.com/12331545fd5ac05134d84bd7d5e05dee

    Its not following the npc by its Unique ID, am i doing something wrong?

  • cap dropbox.com/s/jeef3f9l590rnqj/rtstester.c3p

    gyazo.com/872825d1d6215d2a9e6cf478b61ca420

    the enemy that is clicked on should become the target and should follow until the target change. I cannot figure it out,

  • If you use a condition such as enemy.UID = num, then when you use the find path to enemy action it will pick that enemy.

    thx for the reply, not sure if im doing it right but its not working for me

  • Using pathfinding how do you follow enemy object UID? If I have multiple of the same enemy objects, how do i make an object follow the enemy object by UID?

  • Very nice thx man this is exactly what I was looking for!

  • I'm looking for a mechanic that (Using pathfinding and Line ofSight) allows the player Unit to follow an NPC wherever he goes but from a distance.

    like in this video

    youtube.com/watch?v=Le5f8AhudKs&feature=youtu.be

    he follows the other Unit while shooting at him at the same time when within lineofsight. Once line of sight is lost, unit stops following.

    How can I achieve this?

  • How do I make pathfinding and line of sight follow from a distance?

    Im trying to get object1 to follow enemy1 but from a distance, also if there are multiple {enemy1) on the screen, object 1 should follow the one he is closer to. Like possible follow an enemy with a certain uid or something, How can I achieve this?

  • You do not have permission to view this post