How to Trigger "OnFire" (Bow)?

Post » Tue Jun 19, 2012 1:20 am

Can someone Tell me how to trigger the Event "onFire" or something like this?

I want to drain mana everytime i used my summoned Bow.
User avatar
how solid
 
Posts: 3434
Joined: Mon Apr 23, 2007 5:27 am

Post » Mon Jun 18, 2012 8:08 pm

If your going to make your own projectiles you could attach a explosion that does nothing but have a enchantment that has a script attached to it that will drain the players mana
User avatar
e.Double
 
Posts: 3318
Joined: Tue Jul 24, 2007 11:17 pm

Post » Tue Jun 19, 2012 5:28 am

I have an own Projetile but how can i add a script to the projetile or an enchantment?
User avatar
Emmie Cate
 
Posts: 3372
Joined: Sun Mar 11, 2007 12:01 am

Post » Tue Jun 19, 2012 6:01 am

Attach a script to the player the checks for the animation event for firing a bow. In the event, see if it's the summoned bow and reduce magicka?

http://www.creationkit.com/Form.OnAnimationEvent_(Papyrus)

I think the one you want is

RegisterForAnimationEvent(SELF, "arrowRelease")
-MM
User avatar
i grind hard
 
Posts: 3463
Joined: Sat Aug 18, 2007 2:58 am

Post » Tue Jun 19, 2012 11:03 am

hmm this weekend i'll try it.
thanks for info...
User avatar
Lloyd Muldowney
 
Posts: 3497
Joined: Wed May 23, 2007 2:08 pm

Post » Tue Jun 19, 2012 10:01 am

try this:

Event OnObjectEquipped(Form akBaseObject, ObjectReference akReference)  if akBaseObject as Weapon    if (self.GetEquippedItemType() == 7)     RegisterForAnimationEvent(self, "BowRelease")    endif  endIfendEventEvent OnAnimationEvent(ObjectReference akSource, string asEventName)  if (akSource == self) && (asEventName == "BowRelease") && (self.GetEquippedItemType() == 7)    Debug.MessageBox("FIRE!!!")  endIfendEvent

this works, as far I know ... but I can not attach a script to projectiles, if you find a way to do it, I'd like to know too
User avatar
Motionsharp
 
Posts: 3437
Joined: Sun Aug 06, 2006 1:33 am

Post » Tue Jun 19, 2012 8:18 am

You can add an explosion to the projectile and then have the explosion spawn an object that has a script attached to it if that's what your looking for.
User avatar
luke trodden
 
Posts: 3445
Joined: Sun Jun 24, 2007 12:48 am

Post » Tue Jun 19, 2012 8:52 am

I'm looking for something like launching missiles, I want my bow shoot 3 arrows at once...
User avatar
Ellie English
 
Posts: 3457
Joined: Tue Jul 11, 2006 4:47 pm


Return to V - Skyrim