hostages triggering events
Post Reply
Quote
Re: hostages triggering events
Posted by RadiKal on Sun Feb 27th at 3:35am 2005


I was just wondering how I can get hostages (or bots or any NPCs) to be able to trigger events. Is it a trigger multiple? If so, what flags should be set?



Quote
Re: hostages triggering events
Posted by Joe-Bob on Sun Feb 27th at 3:58am 2005


I don't map for CSS, but you should experiment by making multiple triggers which do something obvious. Then, make your hostages walk over all the triggers and find out which ones do what. (Make sure that the player isn't the one walking over the triggers).

After all that, you should probably filter that trigger for a filter_name entity. Set the filter_name entity to the hostage.




Quote
Re: hostages triggering events
Posted by XenNetwork on Mon Feb 28th at 2:11am 2005


On triggers go under the flags tab, and see if theres a hosteages option...Just a thought




Quote
Re: hostages triggering events
Posted by RadiKal on Tue Mar 1st at 4:25am 2005


thats what i tried to do... but they dont' trigger anything... anyone know what the npc checkbox is for then??



Quote
Re: hostages triggering events
Posted by DrGlass on Tue Mar 1st at 4:55am 2005


This is just a shot in the dark, but could you make an invisible object that will trigger events (like some kind of func_brush type object) and then parent that to the hostage.

So the hostage will 'drag' the triggering object over the trigger.
[addsig]




Quote
Re: hostages triggering events
Posted by Atrocity on Tue Mar 1st at 9:40pm 2005


Or you could havethe flag under the trigger entity set to NPC [addsig]



Quote
Re: hostages triggering events
Posted by RadiKal on Wed Mar 2nd at 12:10am 2005


that's what I tried initially and it does nothing... The invisible box following the hostage may work, but it would be a true hack job and wouldn't work for bots. I'm just gonna fiddle with it some more i spose



Quote
Re: hostages triggering events
Posted by Rof on Wed Mar 2nd at 12:15am 2005


What about give the hostage entities a name, and using a trigger_multiple with "everything" set in the spawnflags, but filtered using a filter_activator_name to only the hostage's name.

(If the hostage_entity doesn't have a name field, you might have to enter the hostage_entity name by turning off smartedit, and entering it as the "targetname".)

You could probably give all hostages the same name, and it would still work.

Or using "hostage_entity" as the class for a filter_activator_class might work, too.
[addsig]





Post Reply