Home   Help Search Login Register  

Author Topic: Are triggers objects?  (Read 2611 times)

0 Members and 1 Guest are viewing this topic.

Uldics

  • Guest
Are triggers objects?
« on: 21 Sep 2004, 13:36:49 »
Are triggers objects? I mean, what can be done to a trigger - setpos can be done, speed, size, can they be changed?

Gooner861

  • Guest
Re:Are triggers objects?
« Reply #1 on: 21 Sep 2004, 14:05:14 »
Well u can use triggers to create switch triggers, to synch waypoints, to activate scripts, to make crappy cutscenes......

..... plus a whole heap of other stuff that im sure sumone else will add.

Cheers

Gooner

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:Are triggers objects?
« Reply #2 on: 21 Sep 2004, 14:14:46 »
No, they are not objects.    However some commands do work - yes you can setPos a trigger.     I think you can deleteVehicle it too, though I'm not sure.    

You can't change the area of a trigger dynamically:  once it's set that's that.    However you can use the array returned by the trigger (list triggerName, or just thislist in the trigger itself) to fake an second, smaller trigger be checking the distance between each member of the array and the trigger.

Not sure what you mean about speed.

Are you trying to do something specific?
Plenty of reviewed ArmA missions for you to play

Offline h-

  • OFPEC Site
  • Administrator
  • *****
  • Formerly HateR_Kint
    • OFPEC
Re:Are triggers objects?
« Reply #3 on: 21 Sep 2004, 15:01:23 »
Actually, triggers are sort of objects...
You can createVehicle them, but you can't set any parameters for it...
You can get their position with getPos or position...

Quote
u can use triggers to create switch triggers
??? eh...
Or do you mean making a switch trigger active (by turning some varibs to true??) ??

Quote
I think you can deleteVehicle it too, though I'm not sure.
Yup, you can...
Project MCAR   ---   Northern Fronts   ---   Emitter 3Ditor
INFORMATIVE THREAD TITLES PLEASE. "PLEASE HELP" IS NOT ONE..
Chuck Norris can divide by zero.

Offline Blanco

  • Former Staff
  • ****
Re:Are triggers objects?
« Reply #4 on: 21 Sep 2004, 18:23:38 »
Quote
You can createVehicle them...

Huh?! What's the classname of a trigger?
And how can specify the size of the trigger?

Search or search or search before you ask.

Offline h-

  • OFPEC Site
  • Administrator
  • *****
  • Formerly HateR_Kint
    • OFPEC
Re:Are triggers objects?
« Reply #5 on: 21 Sep 2004, 18:36:18 »
Quote
Huh?! What's the classname of a trigger?
"EmptyDetector"

Quote
And how can specify the size of the trigger?
You can't...
You can createVehicle them, but that's it...
You can't set any parameters for it...

So, again, BIS didn't add something that would have been quite useful in some occations...
Project MCAR   ---   Northern Fronts   ---   Emitter 3Ditor
INFORMATIVE THREAD TITLES PLEASE. "PLEASE HELP" IS NOT ONE..
Chuck Norris can divide by zero.

Offline General Barron

  • Former Staff
  • ****
  • Semper Fi!
Re:Are triggers objects?
« Reply #6 on: 21 Sep 2004, 22:57:49 »
In VBS1 you can make triggers and set their properties via scripting... so I guess in OFP2 we'll be able to do it as well.

I've never tried giving velocity to a trigger, but I doubt that you could.

However, there is one unique property about triggers (placed or camcreated), which can be useful. Wherever you put them, they are always at sea level. Even when you setpos them, they always go to sea level. So they can be useful for finding altitudes above sea level in that manner, and perhaps other related things.
HANDSIGNALS COMMAND SYSTEM-- A realistic squad-control modification for OFP
kexp.org-- The best radio station in the world, right here at home! Listen to John Richards!

Offline h-

  • OFPEC Site
  • Administrator
  • *****
  • Formerly HateR_Kint
    • OFPEC
Re:Are triggers objects?
« Reply #7 on: 22 Sep 2004, 15:27:07 »
Quote
In VBS1 you can make triggers and set their properties via scripting... so I guess in OFP2 we'll be able to do it as well.
If it's possible in VBS1 it would most likely be possible in OFP1 too...
BIS just need to release a new patch which has a few 'switches' turned off in the game engine... :P ::)
Project MCAR   ---   Northern Fronts   ---   Emitter 3Ditor
INFORMATIVE THREAD TITLES PLEASE. "PLEASE HELP" IS NOT ONE..
Chuck Norris can divide by zero.

Offline Blanco

  • Former Staff
  • ****
Re:Are triggers objects?
« Reply #8 on: 22 Sep 2004, 15:50:46 »
alright, thats that "emptydetector" I saw in the helidust scriipts...  :P

So when you create a trigger, what are the properties then?

Default?

50 x 50,eclipse / ACTIVATION = NONE,once

Any way I gonna test it...

Search or search or search before you ask.

Offline General Barron

  • Former Staff
  • ****
  • Semper Fi!
Re:Are triggers objects?
« Reply #9 on: 22 Sep 2004, 23:01:53 »
Quote
If it's possible in VBS1 it would most likely be possible in OFP1 too...
BIS just need to release a new patch which has a few 'switches' turned off in the game engine...

VBS1 is just OFP v1.98. So that 'new patch' would just be VBS1, only $200 dollars cheaper. :P

Quote
So when you create a trigger, what are the properties then?

Default?
Actually, I have no idea. I never even thought that it might have 'trigger' properties; I always figured it was just a invisible, semi-useful object, like a gamelogic. If it does have properties, it would be able to use the 'list' command, but that would be the only useful thing about it. I'd be interested to hear your findings.
HANDSIGNALS COMMAND SYSTEM-- A realistic squad-control modification for OFP
kexp.org-- The best radio station in the world, right here at home! Listen to John Richards!

Offline Blanco

  • Former Staff
  • ****
Re:Are triggers objects?
« Reply #10 on: 17 Oct 2004, 05:25:10 »
I've tested the properties of an "EmptyDetector" and I think the dimensions are 0 by 0  :(

When I use counttype, countside, countenemy, countfriendly it always returns 0.
But you can return the position of the trigger. so the trigger is created...as Hater_kint said before

It's a pity it has no dimensions, even if it was just default, it could be very useful sometimes  :-\

When I create a trigger on top of a unit and return the array its always empty. []. It should return the unit no?
Because there is no ACTIVATION?


@macgube

Quote
However you can use the array returned by the trigger (list triggerName, or just thislist in the trigger itself) to fake an second, smaller trigger be checking the distance between each member of the array and the trigger

What do you mean by that?
I have no members in my array...







« Last Edit: 17 Oct 2004, 05:48:39 by Blanco »
Search or search or search before you ask.

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:Are triggers objects?
« Reply #11 on: 17 Oct 2004, 18:26:52 »
A trigger will return an array of all units specified in the first part of the Activation box.    So if you had West not present, list triggerName would return all the west units in the trigger area.     The array is dynamic, it updates automatically.    

If the trigger area is 0x0 I expect the array would always be empty, but I don't actually know.
Plenty of reviewed ArmA missions for you to play

Kammak

  • Guest
Re:Are triggers objects?
« Reply #12 on: 19 Oct 2004, 00:45:39 »
In VBS1 you can make triggers and set their properties via scripting... so I guess in OFP2 we'll be able to do it as well.

Now that's very exciting to hear.  Do you have VBS?  If there are more scripting "goodies" like this in it, I might seriously consider getting it.

Does VBS have a more extensive event model?  How about better AI control through scripting?


Offline General Barron

  • Former Staff
  • ****
  • Semper Fi!
Re:Are triggers objects?
« Reply #13 on: 19 Oct 2004, 23:02:44 »
Attatched is a listing of all the new scripting commands in v1.99 (I mean VBS1). I think I got it off the VBS1 forums (http://www.vbsresources.com/forum/).
HANDSIGNALS COMMAND SYSTEM-- A realistic squad-control modification for OFP
kexp.org-- The best radio station in the world, right here at home! Listen to John Richards!

Offline Blanco

  • Former Staff
  • ****
Re:Are triggers objects?
« Reply #14 on: 20 Oct 2004, 03:21:34 »
Damn, those are the commands I need...createtrigger, settriggerarea, etc...  8)
Search or search or search before you ask.