Jump to content

Papua

Member
  • Content Count

    4
  • Joined

  • Last visited

  • Medals

Everything posted by Papua

  1. OK I need a command that checks whether a unit exists or not. I have !(alive tank1) && !(alive tank2) && !(alive tank2) && ... etc as the trigger for the end of my mission. But tanks 1,2 and 3 are all on a 50% probability of spawning. If tank1 doesn't spawn to begin with then !(alive tank1) never gets activated because tank1 isn't actually dead, it was just never there from the start. So basically I'd like the function for (!(alive tank1) or !([i]exists?/spawned?/null?[/i] tank1)) Does that make sense? Either that or I was thinking I could set a up variable and +1 to it for each tank that spawns, then -1 for every tank that is destroyed, and have the trigger listen for when the variable == 0. But I'm really not sure how to approach that either. Any tips gratefully received.
  2. Ok, I also don't have any idea what alefs code is doing and after a bit of further testing it seems that it doesn't work as I thought. So back to the drawing board... Thanks for the advice from Rocket as well. That gives me 'any' as the command but when I put it into the trigger as you described it doesn't seem to work either... To summarise - I have a multiplayer co-op mission. I have a set of 10 tanks scattered across a city that spawn on a Probability of Presence of 50%. This works great. Markers appear on the tanks that spawn and are updated by triggers when they are killed to indicate on the map that they've already been destroyed. This also works perfectly. Now the bit i'm struggling with is - When the spawned tanks are all dead I want a trigger to go true. This shouldn't be that difficult to achieve should it? Any more help gratefully received.
  3. Thanks alot alef, this seems to work, but could I be a pain and ask exactly what its doing? A variable called tanks that gets +1 when a tank spawns in the init field, I get that bit. But what is the trigger doing? Specifically what are d and _x all about? Also whilst playing multiplayer earlier it triggered when only 3 of 6 the tanks present had been destroyed. Could you shed any light? Thanks!
  4. This is really useful stuff, thanks guys. But how do I get the kit to stay put even after death/respawn? At the moment, you get all the init gear in your first life, but when you die and respawn you end up with the class default loadout again. Any ideas?
×