Home   Help Search Login Register  

Author Topic: Accessing destroyed models....?  (Read 978 times)

0 Members and 1 Guest are viewing this topic.

funkster

  • Guest
Accessing destroyed models....?
« on: 24 Jun 2005, 14:03:27 »
Hi all,
first off, thanks everyone involved here, been ghosting this site on and off for a while, never really took much interest till now, but this is one hell of a resource and a great example of what happens when people combine their energy and cooperate :).


So, in my mission, there are two enemy groups, enemyGrp1 and enemyGr2 which are both attempting to escape, and you have to kill them both...

So, i have two triggers, I think from memory, the condition I wrote was:

not( alive enemyGrp1)  

;on activation of this trigger

grp1dead=true


(Would that work? I dont know, but whatever I have works), and same for the trigger that detects whether group2 is alive.

Now, the issue is that, I want a win trigger, I want the condition to be that, when grp1dead = true, AND grp2dead=true, then, its victory for the player,
but I JUST CANT remember how to write this. I have been trying the followig:

Condition: grp1dead=true AND grp2dead=true
Condition: grp1dead AND grp2dead  ,even:
Condition: IS(grp1dead) AND (grp2dead)                  (do i look dumb enough yet?! ;) )

etc...but I just cant remember how to do it..
Ive finished the cutscenes, and Im all ready to rock, if I can just sort out the victory condition, soon I can post mission for beta-testing once I sort this out...

Can someone pls help me??

Much appreciated,

funkster.
--------------------------------------------------------------------------------------------
Edit: (Sorry this is going on so long!!)

ALso,  I just got general barron's editor upgrade, but still, I cant find the models I want which are destroyed A10 models. Is there anyway I can access all the destroyed vehicle models?........
--------------------------------------------------------------------------------------------
2nd edit: How do I take screenshots?
« Last Edit: 26 Jun 2005, 00:13:55 by funkster »

CopyrightPhilly

  • Guest
Re:Basic syntax
« Reply #1 on: 24 Jun 2005, 15:56:14 »
are you onabout

condition:
grp1dead && grp2dead




for screenshots, theres a lot of programs that will alow u to take screen shots, i think fraps dose...
or you could press prt scrn, then open paint, then click edit > paste

Offline ACF

  • Members
  • *
  • Llama?? Ain't that French for tanks?
Re:Basic syntax
« Reply #2 on: 24 Jun 2005, 16:11:50 »
Tutorials aren't everything, your first stop should be the Command Reference (comref).

Look up the Alive command and you should see why it's not working - the syntax is for a unit, not a group.  What you need to do is check to see whether each unit in the two groups is alive; and there's plenty of choice in how that could be done:

At its most basic, name every unit and have a condition:

!Alive bloke1 && !Alive bloke2 .... && !Alive bloken

! and && are alternatives to NOT and AND - again, see the comref.

You can refine this method by using the ‘Units' and ‘ForEach' commands, I'm sure there are some examples in the comref you could adapt.

You don't need two triggers, you can put the condition in the end trigger itself, but use a delay so it doesn't end the instant you slot the last enemy.

Be aware of the danger in a 'kill everybody' objective - the enemy who flees, who you can't find so the mission doesn't end.  Make sure you have something, maybe an end trigger on a timer, to end the mission if you don't or can't kill them all or some escape.  You may have only one way of winning but probably many ways of failing

For destroyed A10s, place an A10 and set the health slider to zero.

qqqqqq

  • Guest
Re:Basic syntax
« Reply #3 on: 24 Jun 2005, 16:41:11 »
"alive _x" count units grp1 < 1

funkster

  • Guest
Re:Basic syntax
« Reply #4 on: 25 Jun 2005, 03:03:33 »
Ok, thanks for your help everyone, still there is a prob though.

just about all is fixed now, all I had to write was

Condition: grp1dead && grp2dead

I just did not know the syntax, thx guys.

??????????
*******One prob however, regarding the destroyed A10s, I have tried setting their health bar to 0, it did not work, one time it worked, and they exploded at the start of the mission, but they are meant to have been destroyed in the cutscene, so thats a lil uncongruous! I there is no other way to get destroyed A10 models?*****
« Last Edit: 26 Jun 2005, 00:17:20 by funkster »