Checked corpse event not triggered when AI enabled manually

Have any questions or problems in making your game, subscribing and/or using our software? Post here.
Forum rules
Make sure you are using the newest version. This can be downloaded at the top of the site via the "downloads" link.

Use a very good subject. "Problem" or "Help" are unacceptable titles.

Use the search feature before posting a question, as the answer is probably already here.

Subscript out of range error 9: This is a generic error, and we'll need way more information than that to figure out the problem. If you get this, strongly consider following the instructions of submitting your project through the Submit Bug feature within the editor.
User avatar
ddabrahim
Member
 
Joined: Tue Aug 23, 2016 6:24 pm

Checked corpse event not triggered when AI enabled manually

Postby ddabrahim » Sat Aug 27, 2016 11:07 am

Hi all!

A weird thing is happening in my project and I don't really understand the cause.
What I'm trying to do is, when I killed the enemy and the player check the corpse I want the player to collect the weapon of the enemy and I have no problem with it as long the AI of the enemy is enabled by default.
But in case the AI is disabled by default and I enable it manually in certain cases using an event, when I check the corpse of the enemy for some reason the player does not collect any weapon but I don't even get any error message so I guess the "Checked corpse" event is not triggered at all for some reason but I don't understand why.
The AI is enabled at the time when I kill the enemy but it is disabled by default and I enable it manually, this is the only thing I'm doing different. If the AI is enabled by default, no problem everything works.

Anyone able to explain it to me how AI effecting the "Checked corpse" event?

Thanks


EDIT://

I have tried to reproduce the problem in a new project but I can't. I do everything the same but it works this time...
Last edited by ddabrahim on Tue Aug 30, 2016 5:21 am, edited 1 time in total.
Reason: Automatically merged double post.
Create 2D sprites from 3D models: http://3d2sprite.blogspot.com

Return to Technical Support Questions

Who is online

Users browsing this forum: No registered users

cron