logo
Main

Forums

Downloads

Unreal-Netiquette

Donate for Oldunreal:
Donate

borderline

Links to our wiki:
Wiki

Walkthrough

Links

Tutorials

Unreal Reference

Usermaps

borderline

Contact us:
Submit News
Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Kill Pawn Trigger (Read 1905 times)
JollyOlSport
New Member
*
Offline


Oldunreal member

Posts: 35
Joined: Dec 15th, 2015
Gender: Male
Kill Pawn Trigger
Dec 10th, 2016 at 9:37pm
Print Post  
  I am trying to figure out how to kill a pawn once it has reached its destination.
  Essentially, I am making a path for a pawn to follow (once the player has activated the trigger to get it going) and when he gets to its destination, the pawn dies.

  What series of events, triggers, tags, etc. would I need to use in order for this to work?

Thanks
  

Back to top
 
IP Logged
 
Hellkeeper
Global Moderator
*****
Offline


Soulless Automaton

Posts: 2780
Location: France
Joined: May 21st, 2008
Gender: Male
Re: Kill Pawn Trigger
Reply #1 - Dec 10th, 2016 at 10:45pm
Print Post  
Make the pawn walk through a trigger. Have the trigger activate a SpecialEvent whose InitialState is set to KillInstigator.

Trigger => Events => Event = "SomethingHere"
SpecialEvent => Events = >Tag = "SomethingHere".
SpecialEvent => Object => InitialState = "KillInstigator".

If you want to prevent another creature (or the player) from dying by this setup, you can set the Trigger to only work once by setting the trigger to bTriggerOnceOnly = True under the Trigger tab of the Trigger's properties.
If you want only a certain type of pawn to activate the trigger, set, under the same tab, TriggerType to TT_ClassProximity, and set the desired class(es) in ClassProximityType (you can select the desired class directly from the Actor Browser, just select the desired type of monster). You can combine this with TriggerOnceOnly.
  

You must construct additional pylons.
Back to top
WWW  
IP Logged
 
JollyOlSport
New Member
*
Offline


Oldunreal member

Posts: 35
Joined: Dec 15th, 2015
Gender: Male
Re: Kill Pawn Trigger
Reply #2 - Dec 11th, 2016 at 1:14am
Print Post  
  Would there be any way for the pawn to start walking as soon as the player hits a trigger?

  Say the player walks up to a window, that activates a trigger that then causes the monster to start walking towards the kill switch.

What trigger might I also use in order for a pawn to walk a certain path?

(Sorry bout the butt load of questions, working on a project and I'm sorta new to this stuff)
  

Back to top
 
IP Logged
 
Hellkeeper
Global Moderator
*****
Offline


Soulless Automaton

Posts: 2780
Location: France
Joined: May 21st, 2008
Gender: Male
Re: Kill Pawn Trigger
Reply #3 - Dec 11th, 2016 at 3:45pm
Print Post  
You need to use AlarmPoints for that.
Set an AlarmPoint wherever you need the creature to go (the end of its path), and make sure there's a path between it and creature's starting poing.
Set a trigger in front of the window and trigger the ceature's Tag. Change the Creature's AlarmTag to match the AlarmPoint's tag.
That should be enough to have the guy move to the desired location.
  

You must construct additional pylons.
Back to top
WWW  
IP Logged
 
JollyOlSport
New Member
*
Offline


Oldunreal member

Posts: 35
Joined: Dec 15th, 2015
Gender: Male
Re: Kill Pawn Trigger
Reply #4 - Dec 11th, 2016 at 9:27pm
Print Post  
It all works, except for the trigger to get the monster to start moving. If I walk up close to the monster, it goes to where I need it to go and dies, but if I try to activate the trigger behind the window, it doesn't do anything at all. Any solutions?
  

Back to top
 
IP Logged
 
Hellkeeper
Global Moderator
*****
Offline


Soulless Automaton

Posts: 2780
Location: France
Joined: May 21st, 2008
Gender: Male
Re: Kill Pawn Trigger
Reply #5 - Dec 12th, 2016 at 10:18am
Print Post  
It should work. Triggering a creature has the same effect as walking into its field of view.
Check your events tag. The Trigger's Event must match the creature's Tag. I just tested the setup with a random mercenary in a corridor and it works fine.
Is you creature in ATTITUDE_Hate ?
  

You must construct additional pylons.
Back to top
WWW  
IP Logged
 
JollyOlSport
New Member
*
Offline


Oldunreal member

Posts: 35
Joined: Dec 15th, 2015
Gender: Male
Re: Kill Pawn Trigger
Reply #6 - Dec 12th, 2016 at 10:38pm
Print Post  
  No, my creatures attitude is set to Friendly.
  

Back to top
 
IP Logged
 
Hellkeeper
Global Moderator
*****
Offline


Soulless Automaton

Posts: 2780
Location: France
Joined: May 21st, 2008
Gender: Male
Re: Kill Pawn Trigger
Reply #7 - Dec 13th, 2016 at 9:28am
Print Post  
Creatures set to Friendly will not perform their actions the same way when linked to an AlarmTag: they wait for the player and gesture to him, only moving once the played has reached them. In other words, Friendly creatures use AlarmPoints to guide the player.

If the creature can't be reached and can't be reached later in the game (which seems to be the case, given that the entire thing is supposed to kill it), set it to ATTITUDE_Hate, no matter what and it will work as desired.
  

You must construct additional pylons.
Back to top
WWW  
IP Logged
 
JollyOlSport
New Member
*
Offline


Oldunreal member

Posts: 35
Joined: Dec 15th, 2015
Gender: Male
Re: Kill Pawn Trigger
Reply #8 - Dec 14th, 2016 at 2:03am
Print Post  
  Yeah, I figured I might as well set it to Hate. Anyways, this helped A LOT, thanks man, appreciate it.  Grin
  

Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint
Bookmarks: del.icio.us Digg Facebook Google Google+ Linked in reddit StumbleUpon Twitter Yahoo