skibo316 Posted June 7, 2013 Posted June 7, 2013 Hey everyone. I need some help with a script that sets a stage when an arrow enters a trigger. Obviously I can use event on trigger enter for NPCS, but I am unsure how to get a specific arrow to make a trigger fire. Any help would be appreciated.
stschwarz Posted June 7, 2013 Posted June 7, 2013 Hi,I've never done this before, but this maybe work (or is at least a starting point). An fired Arrow is a sort of 'Projectile'. So you can check in the Trigger Event if the triggering reference is of this kind: Event OnTriggerEnter(ObjectReference akActionRef) Form myBaseForm = akActionRef.GetBaseObject() if (myBaseForm as Projectile) != None ; we were triggered by an projectile (maybe an arrow) Debug.Trace("we were triggered by an projectile (maybe an arrow)") ; do here more: check for which kind of projectile ... endif EndEvent
Recommended Posts