mirror of
https://github.com/openmoh/openmohaa.git
synced 2025-05-09 20:18:17 +03:00
Set the targetname for projectiles
This commit is contained in:
parent
4c057faf73
commit
f9ce111784
1 changed files with 5 additions and 0 deletions
|
@ -1870,6 +1870,11 @@ Projectile *ProjectileAttack(
|
||||||
}
|
}
|
||||||
|
|
||||||
args.setArg("model", projectileModel);
|
args.setArg("model", projectileModel);
|
||||||
|
// Added in 2.0
|
||||||
|
// Set the projectile targetname
|
||||||
|
// so they can be managed from scripts
|
||||||
|
args.setArg("targetname", "projectile");
|
||||||
|
|
||||||
obj = (Entity *)args.Spawn();
|
obj = (Entity *)args.Spawn();
|
||||||
|
|
||||||
if (!obj) {
|
if (!obj) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue