Game Modding | Call of Duty: Black Ops 3 | Scripting
ModmeBot:
Thread By: ihmiskeho
This is a simple tutorial on how to spawn grenades on any entity. Similar to how Origins digsites and SOE pods work.
There's actually a script function in BO3 for this that can be found in the scriptapifunctions:
MagicGrenadeType
ent MagicGrenadeType(<grenade weaponfile="">, <spawnspot>, <velocity(x,y,z)>, <blowup time="">)</blowup></velocity(x,y,z)></spawnspot></grenade>
This is what I used for a digsite script:
//Self = trigger
self MagicGrenadeType( GetWeapon("frag_grenade"), self.origin, (0,0,250));
Hopefully someones finds this useful. No need for a credit, since this is just a basic BO3 function and not something I've made.