Painful Script

Post » Tue May 06, 2014 2:09 am

I've created a script to make the trama root thorns damage the players health. Is there a better way to do this? I keep having to up the distance value to make some of the models to work. There is no collision on the tramaroots. Thanks.

begin painful_tramaroot

float timer

if ( MenuMode == 1)

return

endif

Set timer to ( timer + GetSecondsPassed)

if ( timer < 1.0)

return

endif

if ( GetDistance Player < 30.0 )

MessageBox "Ouch, those thorns hurt!"

Player->ModCurrentHealth -2

set timer to 0.0

endif

end Painful_tramaroot

User avatar
Bereket Fekadu
 
Posts: 3421
Joined: Thu Jul 12, 2007 10:41 pm

Return to III - Morrowind