Difference between revisions of "RemovePerk"
Jump to navigation
Jump to search
imported>Kkuhlmann |
imported>Geckbot m (Robot: Automated text replacement (-\[\[Category:(.*?)\(GECK 1.0\)\]\] +Category:\1(GECK 1.1))) |
||
(4 intermediate revisions by 2 users not shown) | |||
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 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 Also'''== | =='''See Also'''== | ||
Line 20: | Line 28: | ||
[[Category:Functions]] | [[Category:Functions]] | ||
[[Category:Functions (GECK 1.1)]] | |||
[[Category:Player Functions]] | [[Category:Player Functions]] | ||
[[Category:Player Functions (GECK 1.1)]] | |||
[[Category:Perk]] | [[Category:Perk]] |
Latest revision as of 12:59, 15 August 2009
Description[edit | edit source]
RemovePerk removes a perk from an actor. It is called on a reference and the parameter is the perk to remove.
Syntax[edit | edit source]
[ActorREF.]RemovePerk PerkID
Examples[edit | edit source]
BuddyRef.RemovePerk LittleSlugger
Buddy no longer has the benefits of the little slugger perk.
Notes[edit | edit source]
- 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 Also[edit | edit source]
Reference[edit | edit source]
None provided.