luvadea Posted November 14, 2020 Share Posted November 14, 2020 To the point: I want the player to cast a Shout away from certain NPC. If the shout is cast away from him, it sets certain stage. If the shout is cast too close to the NPC, different stage occurs.The Shout script is attached to the player's alias, the other NPC is an alias too. The shout is non-hostile.I got so far as GetDistance... :confused:Any clue? Link to comment Share on other sites More sharing options...
dylbill Posted November 14, 2020 Share Posted November 14, 2020 You can use the OnHit event on your NPC alias: https://www.creationkit.com/index.php?title=OnHit_-_ObjectReference. Also, if you know exactly where your NPC is standing and where the player is standing when the player shouts, you could use GetAngleZ() on the player to determine the direction they are shouting. Link to comment Share on other sites More sharing options...
luvadea Posted November 14, 2020 Author Share Posted November 14, 2020 You can use the OnHit event on your NPC alias: https://www.creationkit.com/index.php?title=OnHit_-_ObjectReference. Also, if you know exactly where your NPC is standing and where the player is standing when the player shouts, you could use GetAngleZ() on the player to determine the direction they are shouting.Thank you for your suggestion.It was sorted with a Force greet package, a Global Variable (the distance) and a Get Distance condition. Link to comment Share on other sites More sharing options...
Recommended Posts