Difference between revisions of "RemovePerk"

From the Fallout3 GECK Wiki
Jump to navigation Jump to search
imported>Kkuhlmann
 
imported>Cipscis
(→‎Notes: Added note about crash caused by calling RemovePerk in an Effect Script)
Line 11: Line 11:
Buddy no longer has the benefits of the little slugger perk.
Buddy no longer has the benefits of the little slugger perk.


=='''Notes'''==
*Using RemovePerk in an Effect Script will crash Fallout 3.  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 Also'''==
=='''See Also'''==

Revision as of 04:43, 3 February 2009

Description

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

Syntax

[ActorREF.]RemovePerk PerkID

Examples

BuddyRef.RemovePerk LittleSlugger

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

Notes

  • Using RemovePerk in an Effect Script will crash Fallout 3. 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 Also

AddPerk

Reference

None provided.