cjhorberg Posted June 2, 2019 Share Posted June 2, 2019 Hi! I'm working on a mod that adds a few new NPCs to the game, and trying to make it so that they escape when the guards starts attacking them. I'm pretty new to scripting but I'm wondering if there is a way to access the triggering reference of a starting block. So if we have this for example Begin onHit if ("*the guy who just hit you*").IsGuard == 1 forceflee endifEnd I want to somehow access the triggering reference of a starting block. Is it even possible? If there is another way of doing it, could you explain it for me please? Any help is appreciated. Eventually I would like this to include trigger zones, so that if a guard enters a certain area, the NPC will be disinclined to attack you, for example. Link to comment Share on other sites More sharing options...
Recommended Posts