Problem with Entity Think
Hi, My code is :
[php] stock create_grenade(id) { new iEnt1 = create_entity("info_target") set_pev(iEnt1, pev_classname, "XBOW") set_pev(iEnt1, pev_aiment, id) set_pev(iEnt1, pev_movetype, MOVETYPE_FOLLOW) set_pev(iEnt1, pev_nextthink, get_gametime() + 2.0) } Entity 1 is created and follows id successfully, but I can't make it think . Can anyone help me plz :). Thanks :) |
Re: Problem with Entity Think
Maybe "info_target" doesn't get deleted when it thinks?
|
Re: Problem with Entity Think
Whatever entity. Engine doesn't call think while it is attached to another entity. When the host entity is dead, Ent1 will be called think . Anyone has solution?
|
Re: Problem with Entity Think
Show your code.
|
Re: Problem with Entity Think
Didn't you notice my code above?
|
Re: Problem with Entity Think
Quote:
|
Re: Problem with Entity Think
PHP Code:
|
Re: Problem with Entity Think
Try to add flag FL_KILLME instead of hooking Think function.
|
Re: Problem with Entity Think
Can you help me to test that ? Because I don't have CS right now (Plz send me screen shot) :D
PHP Code:
|
Re: Problem with Entity Think
Quote:
|
| All times are GMT -4. The time now is 16:16. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.