Background for Skyrim SE
Member of the Actor script
voidfunctionSetPlayerTeammate(boolabTeammate=true, boolabCanDoFavor=true)Native

[DEV SERVER] Loading description...


Caveats


Parameters

boolabTeammate=true

CK Wiki Description

Whether to set or clear the actor's teammate status.

  • Default:True

boolabCanDoFavor=true

CK Wiki Description

Whether to set or clear the actor's ability to do favors when they are the player's teammate.

  • Default:True

Examples

; Set Buddy as a teammate
Buddy.SetPlayerTeammate()
; Clear buddy's teammate status
Buddy.SetPlayerTeammate(false)

Auto-Generated Example

bool myBool__abTeammate
bool myBool__abCanDoFavor

myActor__toCallFunctionOn.SetPlayerTeammate(myBool__abTeammate, myBool__abCanDoFavor)

Related Pages


Additional References

View this function’s page on the Skyrim Creation Kit Wiki

Some data provided by the Skyrim Creation Kit Wiki. Licensed under the Creative Commons Attribution-ShareAlike license.