BecomeActive, Thinking Entities: Difference between revisions

From The DarkMod Wiki
Jump to navigationJump to search
Tels (talk | contribs)
mark as checked (the forum post is from last year :-
Petike (talk | contribs)
m adding category tag
 
(One intermediate revision by one other user not shown)
Line 4: Line 4:
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.
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}}
{{sdk}}
[[Category:Entities]]

Latest revision as of 01:54, 21 October 2018

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.