Only way i got that to work is by calling it on a zombie, dont think you can just call it on any ent.
Is there a substitute for this? That can be called on any ent.
Title: Re: How to spawn Grenades
Post by: MakeCents on January 26, 2016, 12:01:03 am
You could make your own. Spawn model, set to grenade, apply physics slightly, play a sound, do a radius damage... Play fx
Title: Re: How to spawn Grenades
Post by: PROxFTW on January 26, 2016, 12:08:57 am
There is a command not in the scripting reference that exist in waw. I helped harry with this, it was magicgrenadetype of something along those lines. I'll look it up when I get home. I think it is magicgrenadetype, but I'm not at home so not fully sure.
Title: Re: How to spawn Grenades
Post by: Dust on January 26, 2016, 02:16:11 am
Ya thats what I originally looked at, but like Bluntstuffy said, you can only call it on an actor. Trying to find a way to spawn a grenade on any entity.
Title: Re: How to spawn Grenades
Post by: PROxFTW on January 26, 2016, 02:24:22 am
No that's something different, there is a function in waw not in any of the scripting reference that does what zombiekilla wants
Try MagicGrenadeType, I believe it is what I used to get it to work, I dont have the original file of which I used it so not sure Grenade is the actual weapon file of the grenade you want to spawn OriginToSpawn is quite obvious Velocity is a vector as in ( x, y, z ) Time i am not so sure about I believe it is time to explode but not sure
Ex. This will spawn at player origin, should move 100 units up, and the 1 I dont know as far as what it represents.
Title: Re: How to spawn Grenades
Post by: Dust on January 26, 2016, 03:11:11 am
No that's something different, there is a function in waw not in any of the scripting reference that does what zombiekilla wants
Try MagicGrenadeType, I believe it is what I used to get it to work, I dont have the original file of which I used it so not sure Grenade is the actual weapon file of the grenade you want to spawn OriginToSpawn is quite obvious Velocity is a vector as in ( x, y, z ) Time i am not so sure about I believe it is time to explode but not sure
Ex. This will spawn at player origin, should move 100 units up, and the 1 I dont know as far as what it represents.
If its the same as MagicGrenade then it will be the time it takes for the grenade to explode.
Thanks for this, will try it in a minute, and let you know what happens
Title: Re: How to spawn Grenades
Post by: Dust on January 26, 2016, 03:22:08 am
No that's something different, there is a function in waw not in any of the scripting reference that does what zombiekilla wants
Try MagicGrenadeType, I believe it is what I used to get it to work, I dont have the original file of which I used it so not sure Grenade is the actual weapon file of the grenade you want to spawn OriginToSpawn is quite obvious Velocity is a vector as in ( x, y, z ) Time i am not so sure about I believe it is time to explode but not sure
Ex. This will spawn at player origin, should move 100 units up, and the 1 I dont know as far as what it represents.