• Please make sure you are familiar with the forum rules. You can find them here: https://forums.tripwireinteractive.com/index.php?threads/forum-rules.2334636/

Code Access a clients Veterancy in a timer?

Could you give me an example? I'm new to this sorta stuff.

I figured out I could do this:

PHP:
function Timer()
{
    local Controller C;

    for (C = Level.ControllerList; C != None; C = C.NextController)
    {
        if (C.Pawn != None && C.Pawn.PlayerReplicationInfo != None)
        {
            if (KFPlayerReplicationInfo(C.Pawn.PlayerReplicationInfo).ClientVeteranSkill == class'SRVetCommando')
            {
                // HAHA!
            }
        }
    }
}

But I'm not sure how to add a custom class.
 
Upvote 0
Code:
local KFHumanPawn KFHP;
	foreach DynamicActors(class'KFMod.KFHumanPawn', KFHP)
	{
		if (KFPlayerReplicationInfo(Pawn(KFHP).PlayerReplicationInfo).ClientVeteranSkill == class'SRVetCommando')
            {
                // HAHA!
            }
	}

Now, you need to be more specific about creating new clases.

If you are new you MUST read this tutorials:
http://forums.tripwireinteractive.com/showpost.php?p=587119&postcount=1
http://forums.tripwireinteractive.com/showpost.php?p=588152&postcount=1

Good luck!

P.S.: use de bbcode
Code:
 to include the code in the post becouse teh [php] bbcode sucks =)
 
Last edited:
Upvote 0