AmeaAya Posted October 25, 2012 Share Posted October 25, 2012 I thought I had got the whole Scripting system figured out but apparently not. I am trying to make a 'boss' of sorts, that revives a few times upon death. However I did not get very far into the scripts before I ran into trouble. Here's what I have:Scriptname DeadScript extends ObjectReference Explosion property DeathBoom auto Event OnDeath(Actor Killer) Self.PlaceAtMe(DeathBoom) Utility.Wait(3) Int Roll = Utility.RandomInt(0,10) if(Roll > 3) Self.Resurrect() endifendEvent This is no where near the finished script (won't be a dice roll), but it won't compile because it says: Resurrect is not a function or does not exist Yet the function is easily findable on the Creation Kit wiki and I can't see any reason for the error.I assume it is a small and basic problem, and once explained it will solve any similar problems that inevitably pop up, so I feel it is worth a topic. Link to comment Share on other sites More sharing options...
Ghaunadaur Posted October 25, 2012 Share Posted October 25, 2012 Should extend Actor: Scriptname DeadScript extends Actor Explosion property DeathBoom auto Event OnDeath(Actor Killer) Self.PlaceAtMe(DeathBoom) Utility.Wait(3) Int Roll = Utility.RandomInt(0,10) if(Roll > 3) Self.Resurrect() endif endEvent Link to comment Share on other sites More sharing options...
AmeaAya Posted October 25, 2012 Author Share Posted October 25, 2012 (edited) I get it now! Butwhat if I wanted fucntions from multiple 'Extends'? Edited October 25, 2012 by AmeaAya Link to comment Share on other sites More sharing options...
Recommended Posts