Jump to content
Sign in to follow this  
capncoolio

Having some issues with counters and understanding how variables work!

Recommended Posts

Here is what I am trying to do:

I have a squad.

I have set up parameters to allow choosing a maximum number of deaths allowed before the mission fails.

However, no matter how many times I've tried (and how much googling I've done), I'm stuck.

I am trying to make it so that deaths are cumulative; there are 10 (for example) lives between all FOUR squad members.

So far, my best efforts have produced a system which can track the lives of each player individually (sort of). The counter decrements and everything, but the mission will not end for anyone but the player.

I'm using "BASE" respawn style, and have implemented a somewhat hack to make the respawn marker alternate between all living squad members (basically, you always spawn on your squad).

Any help at all would be appreciated, the wiki has been doing my head in!

Thanks!

EDIT: This is the progress I've made so far, trying to implement this.

I think the object referenced by _p1 in lives.sqf ceases to exist when p1 dies? because waitUntil (alive _p1); never triggers.

Any help would be appreciated.

EDIT 2: This works for players, but not for AI. Also I'm not sure whether the lives are pooled, because I don't have anyone to test with.

EDIT 3: Nevermind, got Norrins revive working!

description.ext

-snip-

init.sqf

-snip-

Edited by capncoolio
Additional Progress

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×