MCPcopy Create free account
hub / github.com/bfbbdecomp/bfbb / TargetSet

Method TargetSet

src/SB/Game/zNPCSupport.cpp:233–247  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

231}
232
233void NPCTarget::TargetSet(xEnt* ent, int b)
234{
235 ent_target = ent;
236 if ((ent != NULL) && (b != 0))
237 {
238 typ_target = NPC_TGT_PLYR;
239 return;
240 }
241 if (ent != NULL)
242 {
243 typ_target = NPC_TGT_ENT;
244 return;
245 }
246 typ_target = NPC_TGT_NONE;
247}
248
249void NPCTarget::TargetClear()
250{

Callers 1

FindNearestMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected