stonecutter
Member
Posts: 140
Threads: 17
Joined: Feb 2011
Reputation:
4
|
RE: Combat System !?
That would be possible with a counter ...
if(buttonpressed("mouse1", true){
hitCounterMonsterA++;
PlaySoundAtEntity("","Gunshot1.snt", "Player", 0, false);
PlaySoundAtEntity("","Monsterhit1.snt", "MonsterA", 0, false);
if(GetLocalVarInt("hitCounterMonsterA")==4){
SetEnemyDisabled("MonsterA, true);
}
}
Ok but it seems senseless if there is no option to check if a button is pressed. And if it were possible you have to create a function for every monster in the map ...
(This post was last modified: 04-02-2012, 08:38 PM by stonecutter.)
|
|
04-02-2012, 08:37 PM |
|