Jump to content
Sign in to follow this  
1para{god-father}

Advice on !alive script isssue

Recommended Posts

Need some help !

I am spawning a car & a civi and they move to WP this all works - but i need to do something if the civi is dead but it does not seem to work , where am i going wrong ?

_sqname = creategroup civilian;
_spawncar = _car createVehicle _spawnpos;
_civ createunit [_spawnpos,_sqname,"this moveindriver _spawncar;this setbehaviour 'CARELESS'"];  

_wp0 = _sqname addwaypoint [_pos, 0];
_wp0 setwaypointtype "MOVE";
_wp0 setWaypointSpeed _driveSpeed;

waitUntil{(!alive_spawncar or !alive _civ} ; 
Hint "killed";
//if car is destroyed do x
//if civ is dead do y

Share this post


Link to post
Share on other sites

_civ is a class type!

_civ_unit = _civ createunit bla bla bla

and then use _civ_unit in the alive check

Share this post


Link to post
Share on other sites

how can we know? to me it looks like a partial code...

but in the part i see no _civ,_sqname,_spawnpos,_pos,_drivespeed are not set

and there is a space missing on the first !alive

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  

×