SetScore

From Soldat Community Wiki
Revision as of 10:29, 15 August 2012 by Freeman (talk | contribs) (Created page with "===From the Scripting Manual=== ''procedure SetScore(ID: byte; Score: integer);'' '''Parameter Info:''' ID (Byte): Player ID who will have their score (Kills) modified. ...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

From the Scripting Manual

procedure SetScore(ID: byte; Score: integer);

Parameter Info:
 ID (Byte): Player ID who will have their score (Kills) modified.
 Score (Integer): New player's score.

Description:
This function will set the players score (kills) to a new value.

Examples

begin
    SetScore(1,GetPlayerStat(1,'KILLS')+10); // This will add 10 points to player 1's current score
end;


External Links