OFPEC Forum
Editors Depot - Mission Editing and Scripting => ArmA - Editing/Scripting Multiplayer => Topic started by: 9thInfSandman 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
-
The following might work:
_unit = player;
if (player isKindOf "SoldierWPilot") then
{
if (score _unit < rank1) exitWith
{
player addscore 1000;
hint "Pilot points awarded";
};
};
-
Thanks man, it worked like a charm. :D
Sandman