Jump to content
Sign in to follow this  
Riserburn504

score reset to 0 script

Recommended Posts

Hello,

I would like to have player scores reset to zero after they die. Sort of a way to include a new soldier feel after each death. Is this even possible? I did a search and didn't find anything that I could make heads or tails of to help me with this. Any help would be great!

-Riser

Share this post


Link to post
Share on other sites

Something like this perhaps?

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">

_playerScore = score player;

_playerScore = _playerScore * -1;

player addScore _playerScore;

Run that code whenever a player respawns. Haven't tested it or anything, but it might work. If not, check these two wiki pages:

http://community.bistudio.com/wiki/addScore

http://community.bistudio.com/wiki/score

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  

×