Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
OnAutoDisabled conditions
Your Computer Offline
SCAN ME!

Posts: 3,456
Threads: 32
Joined: Jul 2011
Reputation: 235
#1
OnAutoDisabled conditions

I'm wondering if anyone knows all the conditions required for enemy callbacks to trigger with "OnAutoDisabled" for its type. Apparently, the game automatically deactivating the monster is not enough to trigger the callback.

Tutorials: From Noob to Pro
(This post was last modified: 03-15-2012, 05:52 PM by Your Computer.)
11-08-2011, 01:52 AM
Website Find
Tanshaydar Offline
From Beyond

Posts: 3,085
Threads: 17
Joined: Mar 2009
Reputation: 67
#2
RE: OnAutoDisabled conditions

When player dies and respawns?

11-08-2011, 04:01 AM
Website Find
Your Computer Offline
SCAN ME!

Posts: 3,456
Threads: 32
Joined: Jul 2011
Reputation: 235
#3
RE: OnAutoDisabled conditions

Nope, while still alive. Sometimes the callback gets triggered, but most of the time it doesn't.

Tutorials: From Noob to Pro
11-08-2011, 04:14 AM
Website Find
Tanshaydar Offline
From Beyond

Posts: 3,085
Threads: 17
Joined: Mar 2009
Reputation: 67
#4
RE: OnAutoDisabled conditions

After being activated, when player gets far enough for monster to be deactivated?
I'm just trying to guess, I have no information.

11-08-2011, 04:37 PM
Website Find
Your Computer Offline
SCAN ME!

Posts: 3,456
Threads: 32
Joined: Jul 2011
Reputation: 235
#5
RE: OnAutoDisabled conditions

It would appear that this issue is slightly related to this: http://www.frictionalgames.com/forum/thread-13140.html

Edit: Maybe not; this is too random...

Tutorials: From Noob to Pro
(This post was last modified: 02-08-2012, 11:36 AM by Your Computer.)
02-08-2012, 11:14 AM
Website Find
Urkle Offline
FG - Associate

Posts: 1,172
Threads: 31
Joined: Jul 2006
Reputation: 21
#6
RE: OnAutoDisabled conditions

(02-08-2012, 11:14 AM)Your Computer Wrote: It would appear that this issue is slightly related to this: http://www.frictionalgames.com/forum/thread-13140.html

Edit: Maybe not; this is too random...
Conditions for calling OnAutoDisabled.

if (IsAtLastPatrolNode() && ! IsSeenByPlayer && DistToPlayer > 10 && AutoRemoveAtPathEnd)

But only for the Grunt Enemy



Developing away on one of
Multiple Macs running 10.6, 10.7, 10.8, and 10.9.
Linux, 8-core AMD, 8GB RAM, Fedora 18, nVidia 450 1GB
03-15-2012, 03:05 PM
Website Find
Your Computer Offline
SCAN ME!

Posts: 3,456
Threads: 32
Joined: Jul 2011
Reputation: 235
#7
RE: OnAutoDisabled conditions

Okay, i think i know how to handle my situation now, but is it safe to assume that AutoRemoveAtPathEnd is generally true (or a constant true)?

Tutorials: From Noob to Pro
03-15-2012, 05:01 PM
Website Find
Urkle Offline
FG - Associate

Posts: 1,172
Threads: 31
Joined: Jul 2006
Reputation: 21
#8
RE: OnAutoDisabled conditions

it defaults to true and can be overridden in the UserDefinedVariables section of the entity defintion (e.g. entities/enemy/servant_grunt/servant_grunt.ent )

This is overidden in the graveyard_corpse (ptest) and the enemy_suiter_basile and enemy_suiter_malo

Developing away on one of
Multiple Macs running 10.6, 10.7, 10.8, and 10.9.
Linux, 8-core AMD, 8GB RAM, Fedora 18, nVidia 450 1GB
(This post was last modified: 03-15-2012, 05:21 PM by Urkle.)
03-15-2012, 05:20 PM
Website Find




Users browsing this thread: 1 Guest(s)