Won't lay bomb?

I’m just playing around with the level editor and i am trying to make the npc when killed drop a bomb, but when it dies it dissapears and doesn’t drop the bomb. Can someone explain why?

if(created) { showcharacter; setcharprop #3,head19.png; setcharprop #C0,orange; setcharprop #C1,gray; setcharprop #C2,gray; setcharprop #C3,brown; setcharprop #C4,black; hide; hearts = 1; } if(playerchats && strequals(#c, reveal)) { followplayer; show; } if(washit) { hearts -= .5; } if(hearts == 0) { hide; lay superbomb; }

Because you made it so when it dies, it hide’s, then lays the bomb. If the npc hides it cant do some commands until it is shown again.
Instead make it:
Lay superbomb;
Hide;
Its only a split second so there wont really be a difference if it lays, then hides

Thank you that fixed it :slight_smile: . I thought that if i put lay superbomb; before the hide then it would hide the bomb also.

… It can still do stuff while hidden. wth.

Yeah but not lay; obviously. Geez
I didnt mean ANYTHING i just meant anything like some things
Its called a colloquialism look it up

[QUOTE=Yenairo;56119]… It can still do stuff while hidden. wth.[/QUOTE]

that’s what i thought also.

[QUOTE=Beastk;56117] If the npc hides it cant do anything until it is shown again. [/QUOTE]

Watch your words >:|

[QUOTE=Yenairo;56123]Watch your words >:|[/QUOTE]

Fixed.

lol @ yenairo. beastk owned you.

so yea don’t say it can’t do anything.

[QUOTE=mark;56127]so yea don’t say it can’t do anything.[/QUOTE]

Ok you know when people complain about other people at work saying “oh he never even does anything” they dont literally mean he does nothing. (unless “he” is really bad XD)
Same thing here. Like i said before, colloquialism.

What the fuck!? Grammar Natzi? That’s just common sense! Don’t word things wrong or people take it the wrong way! FFS.

[QUOTE=Beastk;56129]
Ok you know when people complain about other people at work saying “oh he never even does anything” they dont literally mean he does nothing. (unless “he” is really bad XD)
Same thing here. Like i said before, colloquialism.
[/QUOTE]

ok yea but since i’m new to gscript when you said it can’t do anything i took it as it won’t do anything, not it will still do other things.

[QUOTE=mark;56131]ok yea but since i’m new to gscript when you said it can’t do anything i took it as it won’t do anything, not it will still do other things.[/QUOTE]

Yes. I forgot that tone doesnt transfer into writing. If i had been talking to you im sure you would have understood perfectly well. I sincerely apologize.

Beastk you’re really getting on my nerves. You went from respectable to just plain stupid in 5 posts flat.

[QUOTE=Beastk;56132]
Yes. I forgot that tone doesnt transfer into writing. If i had been talking to you im sure you would have understood perfectly well. I sincerely apologize.

[/QUOTE]

yea i probably would of picked it up.

[QUOTE=Yenairo;56119]… It can still do stuff while hidden. wth.[/QUOTE]

Well you did kindve flame me for something small…

I don’t discriminate.

I flame everyone.

You dont flame cadavre, beholder, gllt, chuck norris or elmo

Lies.