Moving Platform Troubles

  • Site Migration: See bugs? Report them here. Want something changed or have an idea? Suggest it here.

Sgt PepDragon

L1: Registered
May 3, 2018
11
0
Hello, I am currently working on my first map. It's a KOTH map and i made a bucket like platform that players can get on, but I've been having some problems with getting stuck in it. I've found some solutions for that but now i am stuck. There is an area where it goes through where Enginees can place a Sentry and that's OK, but i want the platform to destroy the sentry if it goes through it.
 

Sgt PepDragon

L1: Registered
May 3, 2018
11
0
20180504134552_1.jpg 20180504134608_1.jpg 20180504134630_1.jpg Here are some screenshots of the area of the map I'm talking about. You can see in the third pic where Sentrys can be placed, but i would like to make it where the platform will destroy the sentry if it goes through it.
 

Micnax

Back from the dead (again)
aa
Apr 25, 2009
2,108
1,571
Interesting gameplay mechanic!

If you want to destroy buildings that contact the bucket, you can place a trigger_hurt parented to the bucket and have the filter set to just buildings (just like how the Payload cart does it).

Here's a screenshot of the trigger_hurt you'll want to make:

bucket_1.png


Notice the 'Filter Name' field as well. That's what makes the trigger know to only destroy buildings, not players. You'll need to make a filter_activator_class with the following settings below, give it a name, and hook it up to the trigger_hurt.

bucket_2.png


Then your trigger will only destroy buildings as it passes over them!
 

Sgt PepDragon

L1: Registered
May 3, 2018
11
0
Thank you! So how do I hook them up to each other? I think i'm not doing something because it's not working.
 

DrSquishy

we've all had better times to die
aa
Feb 10, 2017
1,268
871
You need to parent the trigger_hurt to the platform. On the trigger_hurt, in the little box that says 'Parent' just input your platform's name and it should move along with it.
 

DrSquishy

we've all had better times to die
aa
Feb 10, 2017
1,268
871
can you post what you have set up, for the trigger_hurt and the platform?
 

DrSquishy

we've all had better times to die
aa
Feb 10, 2017
1,268
871
use something like the Snipping Tool to take a screenshot of your settings for the two objects
 

DrSquishy

we've all had better times to die
aa
Feb 10, 2017
1,268
871
seems fine to me...have you gone ingame and tried showtriggers_toggle, to see if the trigger hurt is following it?
 

DrSquishy

we've all had better times to die
aa
Feb 10, 2017
1,268
871
Have you tried it without the filter active? Test if players are killed, and also test if buildings are destroyed
 

DrSquishy

we've all had better times to die
aa
Feb 10, 2017
1,268
871
Might NPCs need to be checked? I'm not sure what a sentry falls under. Clients would refer to plays I believe, so you don't want that checked. You could also try ''everything' and hope the filter does its job
 

henke37

aa
Sep 23, 2011
2,075
509
You parented the train to itself. That's... not a good idea.