I have added this to the init line of the enemy:
this addeventhandler ["Killed",{[this,player] exec "enemygotkilled.sqs"}]
PROBLEM : I CAN'T UPDATE CURRENT NO OF ENEMIES LEFTenemygotkilled.sqs
_prey=_this select 0;
_killer=_this select 1;
?_killer != player : exit
kills=kills+1
;a variable that has been set to 0 in the init.sqs
hint format ["Rating : %1 points\nHealth Status : %2 (0=Good,>0=Hit)\n\nYour Kills = %3 ",rating player,getdammage player,_kills]
~1
exit
I wanted to add number of enemies left,so i have place a trigger
Properties of the triggerOPFOR PRESENT REPEATEDLY
axisa/b: 500
name : area1
condition : startcount
On Act : noofenemies=EAST countside area1
[b]in another try[/b],
On Act : noofenemies=EAST countside list area1
and changed the script like this :
enemygotkilled.sqs
_kills=0
_prey=_this select 0;
_killer=_this select 1;
?_killer != player : exit
startcount=true
_kills=_kills+1
hint format ["Rating : %1 points\nHealth Status : %2 (0=Good,>0=Hit)\n\nYour Kills = %3\n\nNo of enemies left : %4 ",rating player,getdammage player,_kills,noofenemies]
~1
startcount=false
exit
So that the variable startcount will be true at the script runs and will be set to false as soon as the script end........to make the trigger update the current no of enemy left......
But both of the On Act codes in the trigger don't work........when used as "noofenemies=EAST countside area1", the script only count the no of enemies once and was not updating the current status............
When used the other, "noofenemies = EAST countside list area1", i got the same problem plus
some strange text in the hint at the first run of the script, the text is similar to "00000fx0es"
Haroon1992..............................
Hoping to get your solutions to this problem soon........
Note : This script is used in my mission S.T.E.A.L.T.H [Rahmadi] which is in BETA Testing Forum....
If i could get the help from you, i will add no of enemies left to the mission..........
Thanks in Advance..........