I've gone through all the posts on this forum and I'm still not able to generate code that can spawn working:
- Smoke grenade
- HE grenade
- Molotov
- Inc grenade
Spawning them is doable with the entity itself, but making them work just like the engine is not.
The smoke just keeps bouncing and never goes off.
Same with the HE grenade
PHP Code:
int entity = CreateEntityByName("flashbang_projectile");
TeleportEntity(entity, xyz, NULL_VECTOR, vel);
DispatchSpawn(entity);
Anyone have any working code/snippet to get any of the grenades working? (preferably the smoke).
Cow.
__________________