Here's my script:
ScriptName activateSelfOnCombatBegin extends Actor
{Script that lives on an actor that simply activates itself on Combat Begin}
import game
import debug
auto State waiting
Event OnCombatStateChanged(Actor actorRef, int combatState)
if combatState != 0 ; 0 = not in combat, so if the state isn't 0, they entered combat
gotoState("allDone")
activate(Self)
endIf
endEvent
endState
State allDone
;do nothing
endState
SPELL Property WerewolfChange Auto
Event OnCombat (Kythiraamanan)
Werewolfchange.cast(Self, Self)
endEventI am receiving this error when compiling:
Compiling "activateSelfOnCombatBegin"...
c:\program files (x86)\steam\steamapps\common\skyrim\Data\Scripts\Source\temp\activateSelfOnCombatBegin.psc(22,29): missing ID at ')'
No output generated for activateSelfOnCombatBegin, compilation failed.
Batch compile of 1 files finished. 0 succeeded, 1 failed.
Failed on activateSelfOnCombatBegin
Any help would be apreciated (or a script if anyone knows one that works like this)
Thanks
Edited by Maleagant, 11 April 2012 - 03:38 AM.



Sign In
Create Account
Back to top








