MCPcopy Create free account
hub / github.com/JACoders/OpenJK / NPC_SetLookTarget

Function NPC_SetLookTarget

codeJK2/game/NPC_utils.cpp:1388–1397  ·  view source on GitHub ↗

------------------------- NPC_SetLookTarget ------------------------- */

Source from the content-addressed store, hash-verified

1386-------------------------
1387*/
1388void NPC_SetLookTarget( gentity_t *self, int entNum, int clearTime )
1389{
1390 if ( !self->client )
1391 {
1392 return;
1393 }
1394
1395 self->client->renderInfo.lookTarget = entNum;
1396 self->client->renderInfo.lookTargetClearTime = clearTime;
1397}
1398
1399/*
1400-------------------------

Callers 9

G_DamageFunction · 0.70
Q3_LookTargetFunction · 0.70
NPC_TempLookTargetFunction · 0.70
ClientThink_realFunction · 0.70
Jedi_CheckAmbushPlayerFunction · 0.70
Jedi_PatrolFunction · 0.70
WP_ForcePowerRunFunction · 0.70
NPC_ExecuteBStateFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected