SetCompanion - Actor
Revision as of 10:25, 1 December 2015 by imported>Plplecuyer (Created page with "Category:Scripting Category:Papyrus '''Member of:''' Actor Script Sets/clears this actor as the current companion. == Syntax == <source lang="papyrus"> Function Set...")
Member of: Actor Script
Sets/clears this actor as the current companion.
SyntaxEdit
Function SetCompanion(bool SetCompanion = true, FillCompanionAlias = true)
ParametersEdit
- SetCompanion: Whether to set or clear this actor as a companion
- Default: True
- FillCompanionAlias: Whether to fill the alias with this actor (should almost always be true)
- Default: True
Return ValueEdit
None
ExamplesEdit
; Set dogmeat as the companion
Dogmeat.SetCompanion()
; Remove Valentine as companion
Valentine.SetCompanion(false)