Page 1 of 1

Game score, Points per kill.

Posted: Sun Mar 04, 2007 1:11 am
by incenseman2003
I have looked through the manual and have not seen anything about this. I am hoping to find a way to get the player to gain a point value for each badguy they kill and have the ponts update in the hud with each kill. I have not found anything in the forum on this subject and I have abandoned the demos as it is just to hard to even get them to run. I looked through the FAQ and there is talk about HitPoints but that is not what I need. Can someone explaint to me how to score a certain amount of points per kill and have it show in the hud?

Posted: Sun Mar 04, 2007 5:16 am
by darksmaster923
yeah that would be cool
what about
make a variable named score.
put it in your hud
when enemy dies, add one to score var

Posted: Sun Mar 04, 2007 9:25 am
by Juutis
make a variable named score.
put it in your hud
when enemy dies, add one to score var
Yep, that's the way to do it.

A little explanation to the last part:
You can modify attributes in a script with 'ModifyAttribute()' command. So you need to add something like this to the dying order of your enemy script:
ModifyAttribute("score",X,"Player");
where X is the amount you want to add to the score.

Posted: Sun Mar 04, 2007 1:00 pm
by incenseman2003
It works just like I need. I didnt think of the ModifyAttribute command. I was looking for an increase command that would do that. I was so off the right track.

Thanks a ton!!