Home   Help Search Login Register  

Author Topic: How do I end the level when enemy dead?  (Read 941 times)

0 Members and 1 Guest are viewing this topic.

MrTickle

  • Guest
How do I end the level when enemy dead?
« on: 16 May 2004, 19:59:26 »
Hi,
I'd like my map to end when I've killed all the enemy or when they kill me. I know nothing about scripts. Is there an easy way?

I did try a code snippet by snYpir but being a noob I can't get it to work ??? It would help if I knew what I was doing ;D

I've managed to get a helicopter to pick up me and my team. Drop us off and wait for the enemy trucks and tanks to arrive. All that was easy enough (for me)  ;)

Thanks in advance.

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:How do I end the level when enemy dead?
« Reply #1 on: 16 May 2004, 20:58:30 »
Make a trigger covering the whole map:-

Activation box:   West (or whoever) not present
Type:   End#1

It's almost always better to use triggers and waypoints rather than scripts.
Plenty of reviewed ArmA missions for you to play

MrTickle

  • Guest
Re:How do I end the level when enemy dead?
« Reply #2 on: 17 May 2004, 00:08:50 »
Thanks m8 much appreciated ;)

Would Not present for East be:- !(alive EAST)?

Dubieman

  • Guest
Re:How do I end the level when enemy dead?
« Reply #3 on: 17 May 2004, 03:39:52 »
Up at the top of the trigger is a thing like activated by:(put anybody)
Then under that pick appropiate thing, or condition.
East not present, west detected by east......

That should solve your problem without writing anything.

Offline Chris Death

  • Former Staff
  • ****
  • Finally Death's gonna get ya
    • OFPEC
Re:How do I end the level when enemy dead?
« Reply #4 on: 17 May 2004, 04:06:08 »
Up at the top of the trigger is a thing like activated by:(put anybody)
Then under that pick appropiate thing, or condition.
East not present, west detected by east......

That should solve your problem without writing anything.

When you say: put anybody

you can't then say: east not present or west detected by east, as
it's then ANYBODY not present or ANYBODY detected by east.

correct example:

Trigger: cover the area you want

activation: the side you want (e.g: EAST)

then highlight: not present

condition: THIS (this will make the trigger wait for the definitions in the
activation details above).

P.S: east not present is not !(alive EAST)
except you meant by that: no more eastern units inside the trigger's area.

and finally: P.P.S:

welcome back to the forums Macguba

                                        ;D

~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

MrTickle

  • Guest
Re:How do I end the level when enemy dead?
« Reply #5 on: 17 May 2004, 09:57:42 »
Thanks guys ;) It's working now. Now I just need to figure out how to get the enemy to blow up the fuel station and Me lose.

Dubieman

  • Guest
Re:How do I end the level when enemy dead?
« Reply #6 on: 17 May 2004, 19:40:17 »
Whoops :tomato:

I kinda skipped a beat there, yeah you put east and then detected by west or not present....

derrrrr :P

SandVoss

  • Guest
Re:How do I end the level when enemy dead?
« Reply #7 on: 18 May 2004, 12:15:42 »
You want to get the enemy to blow up the fuel station? Aww.. that involves sum sophisticated scripting.  :D

There is a original mission, a black op mission in which you have to blow up a fuel station. I suggest you de-pbo it, and have a look at the scripting. Also, go in the tut. depot and find the tutorial mission on how to get a black op to place satchel charges and detonate them. You will have a set a trigger then connected to the fuel station, with something like <unit>destroyed=true (where unit is the name of the fuelstation, to get make you lose or whatever.

MrTickle

  • Guest
Re:How do I end the level when enemy dead?
« Reply #8 on: 18 May 2004, 23:13:25 »
Thanks a lot m8 ;)

Sounds like I need an app to de-pbo ??

BTW the menu's won't expand for me for Tut's and stuff on this sites main page :(

Dubieman

  • Guest
Re:How do I end the level when enemy dead?
« Reply #9 on: 19 May 2004, 03:45:34 »
Your not alone Mr Tickle. If OFPEC would take some hints hint hint they would try and fix the editor depot. I want my expandables back! (sounds wrong doesn't it?) ;D

There is a program called DEPBO. I think its in www.OPFlashpoint.org     OR here if you use the search function to find stuff in the ed depot.

Fuel station solution, if player isn't gonna be near station at all then just make black op go near fuel station and do the  switchmove or playmove animation and later just

12223 setdammage 1   to blow the station. Or camcreate a heat shell or something. Your way should work though. ;)