BecomeActive, Thinking Entities: Difference between revisions
From The DarkMod Wiki
Jump to navigationJump to search
No edit summary |
mark for check/deletion |
||
Line 1: | Line 1: | ||
{{outdated|This is '''very probably''' obsoleted by the recent AI code re-organisation, so this page could be deleted}} | |||
{{Original_Reference|Ishtvan|4146}} | {{Original_Reference|Ishtvan|4146}} | ||
If you give an entity a new '''::Think''' method, be sure to call '''BecomeActive( TH_THINK )''' in the spawn method, otherwise the '''::Think''' will only get called | If you give an entity a new '''::Think''' method, be sure to call '''BecomeActive( TH_THINK )''' in the spawn method, otherwise the '''::Think''' will only get called once and then no more. | ||
{{scripting}} |
Revision as of 14:56, 17 November 2007
This is very probably obsoleted by the recent AI code re-organisation, so this page could be deleted
Originally written by Ishtvan on http://forums.thedarkmod.com/topic/4146
If you give an entity a new ::Think method, be sure to call BecomeActive( TH_THINK ) in the spawn method, otherwise the ::Think will only get called once and then no more.