Aller au contenu

Photo

Get Familiar casting spell?


  • Veuillez vous connecter pour répondre
2 réponses à ce sujet

#1
BelowTheBelt

BelowTheBelt
  • Members
  • 394 messages
What's a way for me to determine if a familiar is casting a spell (rather than the PC)?

I put in a GetIsPC check in a spellhook script that, if false, should return the script.  But  in the case of a familiar, it doesn't seem to be triggering false and instead is getting past the check and triggering a subroutine that should only affect PCs.

Ultimately, I want to know if the caster of a spell is a familiar (or companion or henchman).

Any thoughts or a place to start?

Modifié par BelowTheBelt, 18 février 2014 - 08:24 .


#2
Shadooow

Shadooow
  • Members
  • 4 470 messages
GetIsPC should return FALSE for the familiar, however player can possess the familiar and in that case GetIsPC returns TRUE. To deal with this try GetIsPossessedFamiliar() which returns TRUE if the oTarget is player-possessed-familiar.

You are in the suitable place already.

Modifié par ShaDoOoW, 18 février 2014 - 08:29 .


#3
BelowTheBelt

BelowTheBelt
  • Members
  • 394 messages
Excellent. Thanks. The PC was seeing feedback messages, so was probably possessing the familiar to do the casting.