#trigger_remove OnRemove not working.

1 messages · Page 1 of 1 (latest)

clever gale
#

I have a trigger_remove and an output for OnRemove to make a sound, but it's not triggering..
Any ideas why?

#

I mean, things are clearly being removed.. and if I have a button for the sound it works

cobalt oyster
#

i dont see an output for sound

clever gale
#

I tried it with a wall toggle to see if it did anything but it doesn't

rapid tiger
#

why not use trigger_multiple like a normal person

clever gale
#

because I'm spawning a lot of items

#

and they need to be destroyed

rapid tiger
#

fire Kill input

#

trigger_remove is shit

clever gale
#

kill input?

#

that destroys the item?

rapid tiger
#

yes?

clever gale
#

:D does it destroy the bomb / detects it too?

#

because that was my issue before 🥲

#

I'll attempt

rapid tiger
#

weapons dont trigger triggers

clever gale
#

and here you have why I use trigger_remove

#

because it removes the bomb

rapid tiger
#

ok but it doesn't trigger the output

clever gale
#

rip

#

I guess my game can't work then

rapid tiger
#

parent physbox inside the c4

#

so it triggers trigger

fossil orchid
#

use developer 2 in console to get info on what output are executed

clever gale
#

Thanks!

#

Another question in relations to this.. I have a spawner for the template (the bomb) and I have the physbox set to have the bomb as it's parent, but it's not spawning with it.. any ideas?

fossil orchid
#

You should show your entities in hammer
A point template cube position matters when you spawn it through a env entity maker

#

@clever gale

clever gale
#

@fossil orchid here's what it looks like, there are 2 spawns per side (it's inefficient I know, but it's good enough for now..)

#

C4 being the actual C4, physbombs are the balls

#

player gets TPd to the bomb location and it spawns right after

fossil orchid
#

is the c4 and physbox inside the template cube ?

clever gale
#

C4s appear fine, the physboxes do not

#

I think I only have one of the two

#

As in, I trigger the point template to spawn one

fossil orchid
#

for information, an entity can only be in one point template

#

so if the physbox are also in another point template

#

that would explain the issue

clever gale
#

there is only one point template per side

#

all items are only once in a template and not others

#

4 bombs, 4 physboxes, split into two templates

fossil orchid
#

Uh you sure ?

clever gale
#

yes

#

oh

fossil orchid
#

In your earlier screenshot
You used template 03 and 04

clever gale
#

I just moved the physbox super high

fossil orchid
#

It means they are part of this template

clever gale
#

it's working fine but the position is off

#

oh

#

odd tho

#

it works fine just bad position lol

fossil orchid
#

You need two separate point template

#

One has first C4 and physbox

#

Other has second C4 and second physbox

clever gale
#

can I show you in a stream?

#

like in VC?

#

because it's working just bad position

fossil orchid
#

So in both point template
Only the properties
Template01 and Template02 will be filled

#

Nah I can't check right now

clever gale
#

@fossil orchid YOOOOOO

#

thank you so much

#

holy shit my game will actually work now 😄

clever gale
#

man this is whack

#

the bomb only triggers the trigger_remove's OnStartTouch, but the doc sais it's only OnRemove that gets triggered

#

but it literally never gets triggered lol

fossil orchid
#

👍

#

The valve wiki can be wrong sometimes

#

You also got the help button on the top right of a entity property window

#

It gives you info about outputs and input @clever gale

clever gale
#

oOOoo thanks