Ballistas driving me crazy.

Post » Sat Feb 02, 2013 7:19 pm

Okay, so if you have a lever and you make it the activate parent of the ballista, it works as intended. But, if I make another object do a GetLinkedRef().Activate(Game.GetPlayer()) on it, it doesn't work at all. I can't figure out why.

Here's my code, the line 'lit' appears on screen at the appropriate time, but the ballista does nothing.

Scriptname PCKP_ActivateOnHit extends ObjectReference  MagicEffect Property myMEff autobool doOnce = falseEvent OnMagicEffectApply(ObjectReference Caster, MagicEffect MEff)	;Debug.Notification("applied")	if MEff==myMEff && doOnce == false		;Debug.Notification("lit")		GetLinkedRef().Activate(Game.GetPlayer())		gotostate("Active")		doOnce = true	endIfendEventauto State InactiveendStateState ActiveendState
User avatar
Mario Alcantar
 
Posts: 3416
Joined: Sat Aug 18, 2007 8:26 am

Return to V - Skyrim