Check if spawned monster is dead [Solved]

Ask for help about creating mods and scripts for Grimrock 2 or share your tips, scripts, tools and assets with other modders here. Warning: forum contains spoilers!
User avatar
Jouki
Posts: 127
Joined: Fri Oct 24, 2014 12:57 pm

Re: Check if spawned monster is dead

Post by Jouki »

Prozail wrote:Are you sure you're connected to the right script?

I just ran that one.. differnet hardcoded coords, but still, and that worked fine.

ok I've copied your script I really dont know why I didnt delete the c reference (I supposed I didnt see that before) so when I copied, troopers didnt spawn at all :D (I'm looking on the map but they are nowhere)
User avatar
Prozail
Posts: 158
Joined: Mon Oct 27, 2014 3:36 pm

Re: Check if spawned monster is dead

Post by Prozail »

so?? it worked as intended now?

otherwise.. the coords are in two places, in the spawn-function , and in the entitiesAt(x,y)
User avatar
Jouki
Posts: 127
Joined: Fri Oct 24, 2014 12:57 pm

Re: Check if spawned monster is dead

Post by Jouki »

unfortunately no

Here's the video
User avatar
JKos
Posts: 464
Joined: Wed Sep 12, 2012 10:03 pm
Location: Finland
Contact:

Re: Check if spawned monster is dead

Post by JKos »

I think go means GameObject. Game Object contains Components, so its a back reference to the main object.
- LoG Framework 2http://sites.google.com/site/jkoslog2 Define hooks in runtime by entity.name or entity.id + multiple hooks support.
- cloneObject viewtopic.php?f=22&t=8450
User avatar
Jouki
Posts: 127
Joined: Fri Oct 24, 2014 12:57 pm

Re: Check if spawned monster is dead

Post by Jouki »

JKos wrote:I think go means GameObject. Game Object contains Components, so its a back reference to the main object.
so? (sorry I'm so tired with this problem but I'm (We're) so close to solving this I'd be really glad when it'll be over, you know)
User avatar
Prozail
Posts: 158
Joined: Mon Oct 27, 2014 3:36 pm

Re: Check if spawned monster is dead

Post by Prozail »

Ok, that is wierd...

I see you have 5 maps, so just doublecheck that it is on the first one of them (the level-property when spawning) cuz that is set to 1 in the script.
but that's basically the only ting i can Think of right now.
User avatar
JKos
Posts: 464
Joined: Wed Sep 12, 2012 10:03 pm
Location: Finland
Contact:

Re: Check if spawned monster is dead

Post by JKos »

Sorry, I don't know the answer, I just posted because I suddenly realized what .go means (Probably).
- LoG Framework 2http://sites.google.com/site/jkoslog2 Define hooks in runtime by entity.name or entity.id + multiple hooks support.
- cloneObject viewtopic.php?f=22&t=8450
User avatar
Jouki
Posts: 127
Joined: Fri Oct 24, 2014 12:57 pm

Re: Check if spawned monster is dead

Post by Jouki »

Prozail wrote:Ok, that is wierd...

I see you have 5 maps, so just doublecheck that it is on the first one of them (the level-property when spawning) cuz that is set to 1 in the script.
but that's basically the only ting i can Think of right now.
Image
Bye
(solved)
User avatar
Prozail
Posts: 158
Joined: Mon Oct 27, 2014 3:36 pm

Re: Check if spawned monster is dead

Post by Prozail »

:D :lol:
User avatar
Jouki
Posts: 127
Joined: Fri Oct 24, 2014 12:57 pm

Re: Check if spawned monster is dead

Post by Jouki »

If I complete the whole map (I hope for this) I must notice you guys! I bet many of my questions are so simple that someone would say stupid but you're really trying to helping with anything that's why I love this community <3 :lol:
Post Reply