Forum Jump :

Author Message


Posts: 62
Rank:


Level: Member

Country: ai
Location:
Occupation:
Age:
In-game name:

 
#1 Posted at 2010-03-08 00:42        
     
Hi,

How can I use a "Not Alive" command (or "not present" ) in a trigger but have it check for a classname of a unit instead of its name that I would give it?

I want to make a trigger which checks if there are no shilkas within the trigger area. And if so than delete a marker, marker1 I called it.

I know how to delete the marker on the on activation, deleteMarkerLocal "marker1". But not how to check for the proper condition.


Thanks.


Author Message


Posts: 523
Rank:


Level: Member

Country: it
Location: In ArmA edit when I can
Occupation: Security officer
Age: 49
In-game name: maxjoiner

 
#2 Posted at 2010-03-08 05:53        
     
Try this:

Assign a name for all the shilkas
In trigger:
activation: not (alive nameshilkas)

:byebye:byebye:byebye:byebye

This post was edited by maxjoiner (2010-03-08 09:32, ago)

Please Help Me, Subscribe at my Youtube Channel: https://www.youtube.com/user/maxjoiner

Advertisement


Author Message


Posts: 62
Rank:


Level: Member

Country: ai
Location:
Occupation:
Age:
In-game name:

 
#3 Posted at 2010-03-08 10:42        
     
Yes I know, but I can't name them.

That is as I described.


Author Message


Posts: 278
Rank:


Level: Member

Country: mm
Location: Yangon
Occupation: Physics(YEU)
Age: 26
In-game name:

 
#4 Posted at 2010-03-08 13:44        
     
first put a trigger,put these in the corr boxes

Set the radius of the trigger so that it covers all the shilkas on the map
Activation : Russian/East (i think Shilka is east)
present
Type : None
Condition : this
On Activation : shilkacars=thislist

ANOTHER TRIGGER

set radius to 0 (axis a =0 and axis b =0)
activation : EveryBody
not present
Condition : "classnameofshilka" counttype shilkacars == 0
On Activation : deletemarker marker1

hope this piece of crap helps


Author Message


Posts: 62
Rank:


Level: Member

Country: ai
Location:
Occupation:
Age:
In-game name:

 
#5 Posted at 2010-03-08 16:28        
     
Well nice try, but it doesn't work. :D


Author Message


Posts: 278
Rank:


Level: Member

Country: mm
Location: Yangon
Occupation: Physics(YEU)
Age: 26
In-game name:

 
#6 Posted at 2010-03-09 13:22        
     
you should describe which part of it doesn't work,so that I/we could find another solution.


Author Message


Posts: 62
Rank:


Level: Member

Country: ai
Location:
Occupation:
Age:
In-game name:

 
#7 Posted at 2010-03-09 18:30        
     
Well, obviously, it doesn't delete the marker. But I'm not so sure it works entire or at all actually. I'm not sure it does anything.

I think the "shilkacars" part is incorrect and just entirely doesn't do anything.


Author Message


Posts: 278
Rank:


Level: Member

Country: mm
Location: Yangon
Occupation: Physics(YEU)
Age: 26
In-game name:

 
#8 Posted at 2010-03-11 14:58        
     
sorry its a typo...
my fault...

The Type is not NONE...set it the the side of the SHILKA (maybe EAST)


Set the radius of the trigger so that it covers all the shilkas on the map
Activation : Russian/East (i think Shilka is east)
present
Type : EAST
Condition : this
On Activation : shilkacars=thislist

ANOTHER TRIGGER

set radius to 0 (axis a =0 and axis b =0)
activation : EveryBody
not present
Condition : "classnameofshilka" counttype shilkacars == 0
On Activation : deletemarker marker1


Author Message

ogion  



Posts: 115
Rank:


Level: Member

Country: se
Location:
Occupation: Small business owner
Age: 43
In-game name: Ogion [SW]

 
#9 Posted at 2010-03-11 17:38        
     
haroon1992 : sorry its a typo...
my fault...

The Type is not NONE...set it the the side of the SHILKA (maybe EAST)


Set the radius of the trigger so that it covers all the shilkas on the map
Activation : Russian/East (i think Shilka is east)
present
Type : EAST
Condition : this
On Activation : shilkacars=thislist

ANOTHER TRIGGER

set radius to 0 (axis a =0 and axis b =0)
activation : EveryBody
not present
Condition : "classnameofshilka" counttype shilkacars == 0
On Activation : deletemarker marker1

"classnameofshilka" is "ZSU"

"Do, or do not. There is no try!" - Yoda
http://www.silentwarriors.org.uk/

Author Message


Posts: 62
Rank:


Level: Member

Country: ai
Location:
Occupation:
Age:
In-game name:

 
#10 Posted at 2010-03-11 21:51        
     
Well it still doesn't work.

I can't put EAST in "Type", only guarded by, obj and loose.

Thanks ogion for the post.

And the activations don't check out either because its not like there are only shilkas within the area. So like when nothing is present it will only delete the marker. I only need it to delete the marker when there are no shilkas left.


Anyone else maybe know how to solve this?


Author Message

ogion  



Posts: 115
Rank:


Level: Member

Country: se
Location:
Occupation: Small business owner
Age: 43
In-game name: Ogion [SW]

 
#11 Posted at 2010-03-12 09:35        
     
You can do it the long way...

Name each shilka and have a trigger with the condition !(alive shilka1) AND ...... etc and when all shilkas are dead, the activation line deletes the marker.
Same as Maxjoiner said above.

One alternative to the the !(alive) is !(canMove shilka1) meaning it is disabled, but not quite destroyed.

And, if you want to try something really cool, try this:

* Put an ammo truck on the map, name it ammo1
* Next, put a trigger on the map, and config it like so:
- axis 0/0
- activation none/once/present
- condition: !canMove ammo1
- activation: bomb="BO_GBU12_LGB" createVehicle position ammo1

And when you come across the ammo truck ingame, do NOT stand too close when shooting at it ;)

Edit:
I tried out a few variations of the above suggestions.
Here's how you should config your triggers:

1. The area trigger
- opfor/once/present
- Condition: this
- Activation: shilkacars=thislist

2. The actiontrigger
- axis 0/0
- none/once/present
- Condition: "ZSU" counttype shilkacars == 0
- activation: deleteMarker "markername"

Apart from the config, you should follow all the other instructions.

This post was edited by ogion (2010-03-12 09:57, ago)

"Do, or do not. There is no try!" - Yoda
http://www.silentwarriors.org.uk/

Author Message

Dead3yez  

I am evil


Posts: 3113
Rank:


Level: Member

Country: en
Location: North Yorkshire
Occupation: dead3yez
Age: 29
In-game name: dead3yez

 
#12 Posted at 2010-03-12 15:49        
     
NONE, ONCE

trigger area as you please

- Condition: "ZSU" counttype thislist < 1
- activation: deleteMarker "markername"


Author Message

ogion  



Posts: 115
Rank:


Level: Member

Country: se
Location:
Occupation: Small business owner
Age: 43
In-game name: Ogion [SW]

 
#13 Posted at 2010-03-12 19:05        
     
My post worked for me in testing... is it really of any importance? I mean, what is the difference gameplaywise if the condition IS 0 or less than one? Would be lulz to see a half shilka running around though! ;)

"Do, or do not. There is no try!" - Yoda
http://www.silentwarriors.org.uk/

Author Message


Posts: 62
Rank:


Level: Member

Country: ai
Location:
Occupation:
Age:
In-game name:

 
#14 Posted at 2010-03-12 20:39        
     
Unfortunately though it doesn't work.

Deadeyes's example deletes it right away, right of the start of the mission.

And ogion's example doesn't delete it.

And I can't name them. It's kinda used by something else. But it doesn't matter because it still doesn't delete the marker.


Author Message

Dead3yez  

I am evil


Posts: 3113
Rank:


Level: Member

Country: en
Location: North Yorkshire
Occupation: dead3yez
Age: 29
In-game name: dead3yez

 
#15 Posted at 2010-03-12 20:44        
     
Try setting the trigger activation to everybody for my example and see if that changes anything.