Frictional Games Forum (read-only)
[SCRIPT] Callback func doesn't get called after enemy leaves area - Printable Version

+- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum)
+-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html)
+--- Forum: Custom Stories, TCs & Mods - Development (https://www.frictionalgames.com/forum/forum-38.html)
+---- Forum: Development Support (https://www.frictionalgames.com/forum/forum-39.html)
+---- Thread: [SCRIPT] Callback func doesn't get called after enemy leaves area (/thread-15593.html)

Pages: 1 2


RE: Callback func doesn't get called after enemy leaves area - Adny - 05-24-2012

(05-24-2012, 03:49 AM)FragdaddyXXL Wrote: FIGURED OUT THAT PROBLEM!!
When I was getting the substring, I miscounted the amount of numbers I needed to skip. I had it set to 11, when it should have been 10.

I'm still worried tho. It gets 2 characters within the string, which would work no problem with "block_box_13", but I'm not sure if it will work for "block_box_1", or any other number 1-9.
would using 01, 02, 03, etc be compatible with the script?


RE: Callback func doesn't get called after enemy leaves area - FragdaddyXXL - 05-24-2012

It's possible, but it'd be kinda shoddy. I thought about it. When I initialize the callbacks OnStart, i use a loop. I'll have to do a check to see if the number is below 10, if it is, add a "0" first, then add the number. If I run into an issue, then I'll have to go with that.