Jump to content

Photo

Detecting whether a npc is a person or a creature


  • Please log in to reply
1 reply to this topic

#1
greyday01

greyday01

    Old hand

  • Premium Member
  • 703 posts

Is there an easy way to determine whether a npc hit by a spell is a person vs something like a dragon or horse?



#2
maxarturo

maxarturo

    What does this even mean?

  • Supporter
  • PipPipPipPipPip
  • 2,984 posts
You can add conditions to your spell's magic effect, such as:
GetIsRace
HasKeyword
 
But if you want to obtain the npc and then do something to it, then you need a script in the 'magic effect'. You can use again one of these or both.

Edited by maxarturo, 18 March 2023 - 08:29 pm.





IPB skins by Skinbox
Page loaded in: 0.509 seconds