Difference between revisions of "AddPerk"

From the Fallout3 GECK Wiki
Jump to navigation Jump to search
imported>Cipscis
(Undo revision 13439 by Pshieldsy19 (Talk))
imported>Cipscis
(Updated to use function template)
Line 1: Line 1:
=='''Description'''==
{{Function
'''AddPerk''' Adds a [[:Category:Perk|perk]] to a CharacterIt is called on a reference and the parameter is the perk to add.
|origin = GECK1
|summary = Increments the rank of the specified perk on an ActorIf the specified Actor doesn't already have the perk, then it will be added with rank 1.
|referenceType = Actor
|arguments = {{FunctionArgument
    |Name = PerkID
    |Type = ref
  }}
|example = BuddyRef.AddPerk LittleSlugger


=='''Syntax'''==
[''ActorREF''.]AddPerk ''PerkID''
=='''Examples'''==
BuddyRef.AddPerk LittleSlugger
Buddy now has the benefits of the little slugger perk.
Buddy now has the benefits of the little slugger perk.
 
}}


=='''See Also'''==
=='''See Also'''==
[[RemovePerk]]
[[RemovePerk]]
=='''Reference'''==
None provided.
<!-- [[AddPerk_Reference|List of functions that use AddPerk]]  (wiki) -->


[[Category:Functions]]
[[Category:Functions]]
[[Category:Player Functions]]
[[Category:Player Functions]]
[[Category:Perk]]
[[Category:Perk]]

Revision as of 16:54, 8 March 2009

< [[::Category:Functions|Category:Functions]]

A function included in the GECK version 1.1.0.36.

Description

Increments the rank of the specified perk on an Actor. If the specified Actor doesn't already have the perk, then it will be added with rank 1.

Syntax

[help]
Actor.AddPerk PerkID:ref

Example

BuddyRef.AddPerk LittleSlugger

Buddy now has the benefits of the little slugger perk.

See Also

RemovePerk