Difference between revisions of "Talk:Make character disappear"

From the Oblivion ConstructionSet Wiki
Jump to navigation Jump to search
imported>JBurgess
imported>ShadowDancer
m (Talk:Make character dissapear moved to Talk:Make character disappear)
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
--[[User:Mrflippy|Mrflippy]] 13:15, 12 April 2006 (EDT): I think OnDeath is only run once. I would try putting code in the GameMode block and running it if the actor is dead. (I think there's a check?)
--[[User:Mrflippy|Mrflippy]] 13:15, 12 April 2006 (EDT): I think OnDeath is only run once. I would try putting code in the GameMode block and running it if the actor is dead. (I think there's a check?)
You can deadguy.getav health <= 0, but it's probably more efficient to set a flag in your onDeath block.  So you may have this:
<pre>
short DeathFlag
begin onDeath
    set DeathFlag to 1
end
begin gameMode
    if DeathFlag == 1
        ; do stuff here
    endif
end
</pre>

Latest revision as of 07:42, 18 July 2006

--Mrflippy 13:15, 12 April 2006 (EDT): I think OnDeath is only run once. I would try putting code in the GameMode block and running it if the actor is dead. (I think there's a check?)