Author Topic: func_activator - what is practical purpose?  (Read 334 times)

0 Members and 1 Guest are viewing this topic.

bitterman

  • Sr. Member
  • ****
  • Posts: 250
  • Karma: +8/-5
  • Doom Newbie
    • View Profile
func_activator - what is practical purpose?
« on: September 28, 2016, 07:07:09 AM »
Can't find any examples in base/maps/game.

This is from func.def and misc.h:

Code: [Select]
Non-displayed entity used to activate triggers when it touches them. 
Bind to a mover to have the mover activate a triggers as it moves. 
When target by triggers, activating the trigger will toggle the activator on and off. 
Activator will disable itself when it activates a trigger.

In other words this is an entity which can activate triggers. But for what purpose? Activating without scripting and/or AI movements?

I guess that triggers can be activated by player/AI or via script.

Also can be maked chain of triggers.

In what cases may needed activation by func_activator?

Thanks.
« Last Edit: September 28, 2016, 07:40:23 AM by bitterman »

argoon

  • Sr. Member
  • ****
  • Posts: 267
  • Karma: +21/-80
  • Doom Newbie
    • View Profile
Re: func_activator - what is practical purpose?
« Reply #1 on: September 28, 2016, 08:37:29 AM »
imo func activator is used only in particular cases, but i can think of one, like a player is riding a platform on a track at the same time baddies are shooting at him from the side of a buildings, you could put a func_activator riding in a invisible spline following side by side the player to activate triggers on the buildings, make rockets shoot, turrets activate, cameras, etc, for example, as the player passes in front. This could certainly be achieved in other ways, like have triggers in the player track and as he enters them activate the stuff, but was just the first thing that came to my mind for the usage of a func_activator but i'm sure you can think of something else. 

The Happy Friar

  • Happy Happy Joy Joy
  • Administrator
  • Hero Member
  • *****
  • Posts: 851
  • Karma: +41/-4
  • Semi-Newbie.
    • View Profile
    • EarthQuake
Re: func_activator - what is practical purpose?
« Reply #2 on: September 28, 2016, 09:29:53 PM »
I noticed several entities in D3 that could of been used in previous Quake games but are not necessary with D3's scripting.  This is one of them I believe.


I could think of a few neat instances for it but not sure it's practical.  I also could think of scripts that would do the same thing & let me have more control.





Ivan_the_B

  • Newbie
  • *
  • Posts: 18
  • Karma: +3/-0
  • Doom Newbie
    • View Profile
Re: func_activator - what is practical purpose?
« Reply #3 on: September 29, 2016, 02:41:08 AM »
I remember using func_activators bound to vehicles in order to touch triggers while driving.

PS: hi guys, it has been a while  :)

bitterman

  • Sr. Member
  • ****
  • Posts: 250
  • Karma: +8/-5
  • Doom Newbie
    • View Profile
Re: func_activator - what is practical purpose?
« Reply #4 on: September 29, 2016, 04:16:40 AM »
Why not just placed triggers along spline and activated them by entity?

Really, can't imagine any simple/obvious case.

PS: hi guys, it has been a while  :)

Hi. You are that guy from doom3world, I remember :)

oneofthe8devilz

  • Sr. Member
  • ****
  • Posts: 371
  • Karma: +93/-84
  • Doom Newbie
    • View Profile
    • Scared Pixel Studios
Re: func_activator - what is practical purpose?
« Reply #5 on: September 29, 2016, 06:16:35 AM »
PS: hi guys, it has been a while  :)

Welcome back man, nice to see you posting here again  :)
I got six little friends and they all run faster than you ;)


Check out our mods at
moddb or the SPS Homepage

The Happy Friar

  • Happy Happy Joy Joy
  • Administrator
  • Hero Member
  • *****
  • Posts: 851
  • Karma: +41/-4
  • Semi-Newbie.
    • View Profile
    • EarthQuake
Re: func_activator - what is practical purpose?
« Reply #6 on: September 29, 2016, 06:49:42 AM »
Why not just placed triggers along spline and activated them by entity?
Really, can't imagine any simple/obvious case.


you just gave one!  :)  Normally something is triggered when the origin touches.  A vehicle will have an origin normally in the middle.  A func_activator could be placed in a specific location. 


Do func_activators need the trigger to be activate by entity enabled?

Ivan_the_B

  • Newbie
  • *
  • Posts: 18
  • Karma: +3/-0
  • Doom Newbie
    • View Profile
Re: func_activator - what is practical purpose?
« Reply #7 on: September 29, 2016, 01:36:44 PM »
Standard triggers can be activated only by player entities by default.
AI and func_activator can touch triggers only if "anyTouch" or "noClient" are set.

In my case the func_activator was used in combination with the trigger_entityname, which can be triggered by a specific entity (the activator itself).
I couldn't use directly the vehicle because it's not able to touch triggers.

I later dropped this whole system and made vehicles able to touch triggers on behalf of the driver.

bitterman

  • Sr. Member
  • ****
  • Posts: 250
  • Karma: +8/-5
  • Doom Newbie
    • View Profile
Re: func_activator - what is practical purpose?
« Reply #8 on: September 29, 2016, 10:33:22 PM »
Thanks for explanation.

As I thought trigger_entityname can be triggered via any specified entity on map (not player/AI only ).

So if I needed to activate trigger with brush/model (any "non-living" entity) then I shoud bind func_activator to these entities.

(right now comes to mind is a tank moving across the field with anti-tank mines)

Right?
« Last Edit: September 29, 2016, 10:36:02 PM by bitterman »

bkt

  • Jr. Member
  • **
  • Posts: 96
  • Karma: +12/-2
  • Doom Newbie
    • View Profile
Re: func_activator - what is practical purpose?
« Reply #9 on: October 11, 2016, 03:49:29 PM »
So if I needed to activate trigger with brush/model (any "non-living" entity) then I shoud bind func_activator to these entities.

...

Right?
Right.

I used the func_activator for the following sequence (the video was recorded well over a year before release, so please ignore the placeholder voice work):


As the player could move around on the platform I used an activator to open the doors based on the platforms position.  This meant that if the player was standing at the very back of the platform, the door would still open at the correct time without any chance of the platform clipping into the door.