RemovePerk

Revision as of 13:59, 15 August 2009 by imported>Geckbot (Robot: Automated text replacement (-\[\[Category:(.*?)\(GECK 1.0\)\]\] +Category:\1(GECK 1.1)))
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

DescriptionEdit

RemovePerk removes a perk from an actor. It is called on a reference and the parameter is the perk to remove.

SyntaxEdit

[ActorREF.]RemovePerk PerkID

ExamplesEdit

BuddyRef.RemovePerk LittleSlugger

Buddy no longer has the benefits of the little slugger perk.

NotesEdit

  • Using RemovePerk in an Effect Script on a perk that has an "ability" type Perk Entry defined will crash Fallout 3, so long as it has an ability specified. Instead, use AddItem to add a scripted token that removes the perk via RemovePerk and then calls RemoveMe:
ref rContainer
Begin OnAdd
	set rContainer to GetContainer
	rContainer.RemovePerk MyPerk
	RemoveMe
End

See AlsoEdit

AddPerk

ReferenceEdit

None provided.