////Lazer////
//////////////////////////////
function lazzer()
{
if
(you == player && EVENT_impact)
// if (you == player && my_height <= 5)
{
PLAY_SOUND gun_fetch,25; //for
lazer sound
YOUR.ROLL + = 4; // shakes player
waitt(2);
YOUR._health - =
.5; // this is for the amount of
dammage
waitt(2);
YOUR.ROLL - = 4;
waitt(2);
}
else {return;}
}
/////////////////////////////
////assign action lazzer beam to entity for shocking
//////////////////////////////
ACTION lazzer_beam
{
MY.INVISIBLE = ON;
MY.ENABLE_SONAR = ON;
MY.ENABLE_IMPACT
= ON;
MY.EVENT = lazzer;
}
/////////////////////////////