Home   Help Search Login Register  

Author Topic: Listing and destroying units within a trigger  (Read 458 times)

0 Members and 3 Guests are viewing this topic.

Offline SilentHunter

  • Members
  • *
  • frozen leg'o'lamb (every gamers most loved weapon)
Listing and destroying units within a trigger
« on: 11 Oct 2003, 21:23:45 »
Hi…

Does anyone know how to destroy buildings within a trigger and within 55 meters of the player?
I started off using the ‘list' command to find out what units within a trigger will activate it, and then how many of the units were close enough to me, all it did was kill me and various other active units, but as far as I know there is no way of getting buildings created during game using the ‘camcreate' command  to be recognised by a trigger.
[size=4.5]NERDS HAVE FEELINGS TOO! [/size] [size=2.5]*adjusts glasses*[/size]

Offline Chris Death

  • Former Staff
  • ****
  • Finally Death's gonna get ya
    • OFPEC
Re:Listing and destroying units within a trigger
« Reply #1 on: 12 Oct 2003, 10:17:42 »
Does anybodye understand what you're asking for?

 ??? I don't  ???

Try to read your question, as you would be somebody who
doesn't know what you want to do. Then decide if it's
possible to figure out what you mean  ;)

Do you want to:

destroy houses?

kill units within 55 m of the player?

create houses?

let units activate a trigger?

list units in a trigger?

 
???

~S~ CD
Dont argue with idiots....they will bring you down to their level and beat you there with experience.

How to use Waypoint type Scripted

Offline SilentHunter

  • Members
  • *
  • frozen leg'o'lamb (every gamers most loved weapon)
Re:Listing and destroying units within a trigger
« Reply #2 on: 12 Oct 2003, 14:46:33 »
LET'S DUMM THIS DOWN A BIT - my fault  :'(

Does anyone know where I can find a script that...

Firstly
LISTS BUILDINGS THAT ARE WTHIN A TRIGGER, size 12,800 square, (the complete size of a 10X10 map)

Secondly
FINDS OUT WHICH ONES ARE WITHEN 55 METERS OF THE PLAYER

Thirdly
DESTROYS THEM NOT DELETES THEM
[size=4.5]NERDS HAVE FEELINGS TOO! [/size] [size=2.5]*adjusts glasses*[/size]

Offline General Barron

  • Former Staff
  • ****
  • Semper Fi!
Re:Listing and destroying units within a trigger
« Reply #3 on: 14 Oct 2003, 21:39:32 »
Triggers cannot detect buildings, so don't bother with those at all. There is a command "nearestbuilding" which returns the building closest to a unit. It may only have a range of 50 meters though, like the nearestobject command. I'd start with trying out the "nearestbuilding" command (look it up in the reference).

Oh, and you aren't going to be able to find a script like this "premade". You'll have to write it yourself or have sombody write it for you.  ;)
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!