Jump to content

Can't get trapped chest to glow


tonycubed2

Recommended Posts

Hi ,

 

I am adding trapped disarmable chests to my mod Sands of Time and need the chests to low when armed, like in Diablo. I used the Effectshaders to make my sandman actor glow but does not seem to work on objects. The whole script is below. Any clues welcome.

 

Tonycubed2

 

 


Scriptname killme extends ObjectReference 
;{to get rid of bodies after encounters}
;and to spawn chests

;ActorBase Property body Auto

Event OnDeath(Actor akKiller)

if Utility.RandomInt() < 99
;
;after testing change back to 21
;
chance = Utility.RandomInt()
if chance > 90
; spawn diamond chest
chest = self.PlaceAtMe(Diamond,1)
Utility.Wait(1.5)
red.play(chest)
Self.Disable()
Self.Delete()
elseif chance > 70
;spawn gold chest
chest = self.PlaceAtMe(Gold,1)
Utility.Wait(1.5)
purple.play(chest)
Self.Disable()
Self.Delete()
elseif chance > 50
;spawn copper chest
chest = self.PlaceAtMe(Copper,1)
Utility.Wait(1.5)
green.play(chest)
Self.Disable()
Self.Delete()
else
;spawn iron chest
chest = self.PlaceAtMe(Iron,1)
Utility.Wait(1.5)
blue.play(chest)
Self.Disable()
Self.Delete()
EndIf
Else
Utility.Wait(180)
;body = Game.GetPlayer().PlaceActorAtMe(sanddude,1)
Self.Disable()
Self.Delete()
EndIf
EndEvent

ObjectReference Property Chest Auto
Container Property IRON  Auto 
int chance
Container Property Copper  Auto 
Container Property Gold  Auto 
Container Property Diamond  Auto 
EffectShader Property blue  Auto 
EffectShader Property green  Auto 
EffectShader Property purple  Auto 
EffectShader Property red  Auto 

 

 

 

 

 

 

Connected to Microsoft Exchange

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...