MCPcopy Create free account
hub / github.com/Norbyte/ositools / Shoot

Method Shoot

OsiInterface/Functions/FunctionUtilities.cpp:313–338  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

311 }
312
313 bool ShootProjectileApiHelper::Shoot()
314 {
315 if (!HasStartPosition) {
316 OsiError("No start position!");
317 return false;
318 }
319
320 if (!HasEndPosition) {
321 OsiError("No end position!");
322 return false;
323 }
324
325 if (!Helper.SkillId.Str) {
326 OsiError("No skill id!");
327 return false;
328 }
329
330 auto shoot = gOsirisProxy->GetLibraryManager().ShootProjectile;
331 if (shoot == nullptr) {
332 OsiError("ShootProjectile helper not found!");
333 return false;
334 }
335
336 shoot(&Helper, Helper.StatusClearChance);
337 return true;
338 }
339}

Callers 1

ProjectileLaunchFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected