Home   Help Search Login Register  

Author Topic: not alive : Ahhhhhhh !!!  (Read 1048 times)

0 Members and 2 Guests are viewing this topic.

Offline rhysduk

  • Former Staff
  • ****
not alive : Ahhhhhhh !!!
« on: 08 Oct 2003, 19:19:29 »
Hi all i need help with "notalive" syntax ;-

I have 4 tanks, when thye are all dead .. i stress hte word ALL and not just when one of hte four tanks is destroyed... when these four tanks are destroyed i need a script to be activated...

I can do the exec "script.sqs" bit . but it is the not alive part i am having trouble with..

not alive [tank1,tank2,tank3,tank4] doesnt work
Reviewed Missions Board: Please Read the User's Guide before posting!

Pride and Joy 1 (HW100-T)

Knut Erik

  • Guest
Re:not alive : Ahhhhhhh !!!
« Reply #1 on: 08 Oct 2003, 19:21:09 »
You'll need one condicion for each tank  ;)

not alive tank1 AND not alive tank2 AND not alive tank3 AND not alive tank 4

Offline dmakatra

  • Members
  • *
  • Better known as Armsty
Re:not alive : Ahhhhhhh !!!
« Reply #2 on: 08 Oct 2003, 19:21:53 »
cond field: !(alive tank1) and !(alive tank2) and !(alive tank3) and !(alive tank4)
on act field: [] exec "script.sqs"

:beat: *Gets Shot* :beat:

Offline LCD

  • Former Staff
  • ****
    • Everon Cartel
Re:not alive : Ahhhhhhh !!!
« Reply #3 on: 08 Oct 2003, 19:23:25 »
or

"not alive _X" count [tank1,tank2,tank3,tank4] == 4

;D

LCD OUT

P.S 4 tanks its beter use - not canmove or not canfire - cuz dey somtimes cant move n fire but dont die :P  :-X
"guess being the community has downsides .." - cheetah
Help Perfecting Da Next Best Thing - O-Team Beta

max_killer_payne

  • Guest
Re:not alive : Ahhhhhhh !!!
« Reply #4 on: 08 Oct 2003, 20:06:33 »
or more simply

Condition: not alive tank and tank2 and tank3 and tank4
On Activation: [] exec "myscript.sqs"

Offline rhysduk

  • Former Staff
  • ****
Re:not alive : Ahhhhhhh !!!
« Reply #5 on: 08 Oct 2003, 20:12:55 »
Wow thanks guys.... so many suggestions..

i shall try them all out and let you know ASAP :D

Rhys
Reviewed Missions Board: Please Read the User's Guide before posting!

Pride and Joy 1 (HW100-T)

Offline LCD

  • Former Staff
  • ****
    • Everon Cartel
Re:not alive : Ahhhhhhh !!!
« Reply #6 on: 08 Oct 2003, 21:17:39 »
@ maxy - stop lookin @ em pics n look wat u write

Quote
Condition: not alive tank and tank2 and tank3 and tank4

den it checks only if tank1 is not alive :P

nd dis way tries (nd fails) 2 use complete syntax like armsty n knut did :P ::)

LCD OUT
"guess being the community has downsides .." - cheetah
Help Perfecting Da Next Best Thing - O-Team Beta

Offline rhysduk

  • Former Staff
  • ****
Re:not alive : Ahhhhhhh !!!
« Reply #7 on: 08 Oct 2003, 23:23:32 »
Just to sum up what u said LCD :-

@Knut

I get an Error Message of "Uknown Operator"

@Sir Armsty

Works perfectly ;D Thanks!

@LCD

Works perfectly also ;D Thanks again ;D

@max_killer_payne

i get a message of "Error and: Type Object, Expected Bool"

So i have it working.... Topic will be left open until friday !

Thanks Guys

Rhys
Reviewed Missions Board: Please Read the User's Guide before posting!

Pride and Joy 1 (HW100-T)

Offline Tomb

  • Contributing Member
  • **
  • in2 Metal? Go 2 my sig
Re:not alive : Ahhhhhhh !!!
« Reply #8 on: 09 Oct 2003, 13:05:05 »

LCD is right, and I'd suggest you use his solution.

See, if a tank gets hit on the gunbarrel or one of the tires etc. then it obviously cease to fire/move, and thus it is "dead" but the CREW may still be alive (or at least one crew member), sitting inside smoking weed or whatever...  ::)

To use the !(alive ---) would be best if you then used a pre-condition, like:

damage tank1 >0.8: tank1 setDammage 1

then the crap WILL explode once it is seriously hit, and THEN ya can use the !alive crap  :-*



Offline LCD

  • Former Staff
  • ****
    • Everon Cartel
Re:not alive : Ahhhhhhh !!!
« Reply #9 on: 09 Oct 2003, 15:28:18 »
im alwayz right :P ;D (xeptwen im wrong ::))

@ rhy - tomb talks bout is dis line ;)

Quote
P.S 4 tanks its beter use - not canmove or not canfire - cuz dey somtimes cant move n fire but dont die

LCD OUT
"guess being the community has downsides .." - cheetah
Help Perfecting Da Next Best Thing - O-Team Beta

max_killer_payne

  • Guest
Re:not alive : Ahhhhhhh !!!
« Reply #10 on: 09 Oct 2003, 18:44:23 »
LCD check the babes topic i updated it again  ;D  :o

Offline rhysduk

  • Former Staff
  • ****
Re:not alive : Ahhhhhhh !!!
« Reply #11 on: 09 Oct 2003, 18:45:06 »
Thanks guys... Much appreciated ;D

Topic locked...

Reviewed Missions Board: Please Read the User's Guide before posting!

Pride and Joy 1 (HW100-T)

Knut Erik

  • Guest
Re:not alive : Ahhhhhhh !!!
« Reply #12 on: 09 Oct 2003, 19:22:30 »
Glad you're problem is solved.. Now all you have to do is to click the "solve topic" button  ;)

Offline rhysduk

  • Former Staff
  • ****
Re:not alive : Ahhhhhhh !!!
« Reply #13 on: 09 Oct 2003, 23:18:09 »
LOL YEha thats the bit i forgot about  ::)  ;D

Thanks again guys !

Rhys
Reviewed Missions Board: Please Read the User's Guide before posting!

Pride and Joy 1 (HW100-T)