Jump to content

Check score and add/remove from it


unclejacko

Recommended Posts

I'm working on a race that has multiple sections. In some sections I want the racers to have to destroy some targets before continueing. I want to check that their score shows that they've killed the required amount of things before they can move on. My though was to have a trigger after the target area that if they didn't get enough kills, they have to go back. If they still refuse and move to the next objective, it'll blow their aircraft up.

 

So is there a way to check the score of a aircraft/player? Ideally there will only be 5-6 aircraft to fly so if checking individually it shouldn't be too hard.

 

Also, is there a way to add/remove score to players? I want to add score for successful CSAR missions in my other map.

Link to comment
Share on other sites

The built-in scoring mechanisms only apply to the player (OFFLINE) or to coalitions (BLUE/RED, for multiplayer).

 

I don't think there's any way to access individual player scores from the triggers or scripting interfaces. You could probably use SLmod or similar, if you're comfortable requiring server-side support.

 

If it's a group exercise (i.e. the group of players needs to destroy a certain number of targets, not each individual player) then it'd be fairly easy to do within the trigger system.

 

Since you described it as a race, it sounds like you need individual player scores, so that means you'll probably be looking at writing an event handler that tracks kills for individual players. It'll get a bit fiddly but should be doable if you're familiar with the Lua scripting system, or willing to spend some time learning it.

Link to comment
Share on other sites

You can't hack into the in-game scoreboard (default key: ' ), but you can use FLAG values to memorize own scoring system outside default scoreboard.

51PVO Founding member (DEC2007-)

100KIAP Founding member (DEC2018-)

 

:: Shaman aka [100☭] Shamansky

tail# 44 or 444

[sIGPIC][/sIGPIC] 100KIAP Regiment Early Warning & Control officer

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...