Home   Help Search Login Register  

Author Topic: Help with a score script  (Read 2067 times)

0 Members and 1 Guest are viewing this topic.

Offline 9thInfSandman

  • Members
  • *
Help with a score script
« on: 23 Jun 2007, 04:39:30 »
Hey, I'm trying to make my own ranking system and I want ArmA to automatically give anyone who is a West Pilot points so they can fly immediately.  I am using ArmA Edit.

This is what I have:

{
   _unit = player;
   if (player isKindOf "SoldierWPilot") then
   {
      if (score _unit < rank1)  exitWith
      {
         player addscore 1000;
         hint "Pilot points awarded";
      };
   };
};


I get no errors when I start the match, it just doesn't work.  Please help.


Sandman

Offline Cheetah

  • Former Staff
  • ****
Re: Help with a score script
« Reply #1 on: 23 Jun 2007, 11:01:02 »
The following might work:
Code: [Select]
   _unit = player;
   if (player isKindOf "SoldierWPilot") then
   {
      if (score _unit < rank1)  exitWith
      {
         player addscore 1000;
         hint "Pilot points awarded";
      };
   };
Like missions? Help with Beta Testing! or take a look at the OFPEC Missions Depot for reviewed missions!

Offline 9thInfSandman

  • Members
  • *
Re: Help with a score script
« Reply #2 on: 24 Jun 2007, 00:18:51 »
Thanks man, it worked like a charm.  :D

Sandman