UGX-Mods Login

or login with an authentication provider below
Sign In with Google
Sign In with Twitter
Sign In with Discord
Sign In with Steam
Sign In with Facebook
Sign In with Twitch

How to spawn Grenades

broken avatar :(
Created 8 years ago
by Dust
0 Members and 1 Guest are viewing this topic.
3,907 views
broken avatar :(
×
broken avatar :(
The King of Zombies
Location: usLouisiana
Date Registered: 24 June 2013
Last active: 4 years ago
Posts
2,148
Respect
Forum Rank
King of the Zombies
Primary Group
Donator ♥
My Groups
More
My Contact & Social Links
More
Signature
Donate to me if you enjoy my work. https://www.paypal.me/thezombiekilla6
×
Dust's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Dust's Contact & Social LinksMrZ0mbiesFanaticdust103194MrZ0mbiesFanatic
I am trying to figure out how to spawn grenades, like the origins dig sites, but cant figure out how to.

I looked through the scripting reference and saw this http://ugx-mods.com/script/#core.Weapons.magicGrenade

I am unsure if this is what I need, but I tried messing with it and did not work.

Any help?
This topic contains a post which is marked as the Best Answer. Click here to view it.
broken avatar :(
×
broken avatar :(
Location: nlApeldoorn
Date Registered: 17 December 2013
Last active: 1 year ago
Posts
1,187
Respect
1,404Add +1
Forum Rank
Zombie Colossus
Primary Group
Community Scripter Elite
My Groups
More
My Contact & Social Links
More
Personal Quote
It aint much, if it aint Dutch
Signature
×
BluntStuffy's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Community Scripter Elite Has shown excellence and experience in the area of custom scripting in the UGX-Mods community.
Oil Rig Beta Access
Oil Rig Beta Access
BluntStuffy's Contact & Social LinksBluntstuffy@BluntZombieBluntStuffyStuffyZombie
Quote
Summary

Creates a "Magic" grenade from an actor

Only way i got that to work is by calling it on a zombie, dont think you can just call it on any ent.
broken avatar :(
×
broken avatar :(
The King of Zombies
Location: usLouisiana
Date Registered: 24 June 2013
Last active: 4 years ago
Posts
2,148
Respect
Forum Rank
King of the Zombies
Primary Group
Donator ♥
My Groups
More
My Contact & Social Links
More
×
Dust's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Dust's Contact & Social LinksMrZ0mbiesFanaticdust103194MrZ0mbiesFanatic
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.
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 14 September 2013
Last active: 4 years ago
Posts
1,895
Respect
Forum Rank
Zombie Destroyer
Primary Group
Community Scripter
My Groups
More
My Contact & Social Links
More
Personal Quote
BE ORIGINAL
Signature
×
MakeCents's Groups
Community Mapper Has released one or more maps to the UGX-Mods community which have been added to the UGX Map Manager.
Community Scripter Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community.
BO3 Modtools Alpha
BO3 Modtools Alpha
This user has access to the Black Ops 3 Modtools Alpha
You could make your own. Spawn model, set to grenade, apply physics slightly, play a sound, do a radius damage... Play fx
Last Edit: January 26, 2016, 12:06:05 am by MakeCents
broken avatar :(
×
broken avatar :(
Location: usYork, SC
Date Registered: 15 March 2014
Last active: 5 years ago
Posts
214
Respect
Forum Rank
Mr. Elemental
Primary Group
Community Scripter
My Groups
More
My Contact & Social Links
More
Personal Quote
WaW Scriptor
Signature
WaW Scriptor
×
PROxFTW's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Community Scripter Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community.
PROxFTW's Contact & Social LinksPROxFTWPROxFTWPROxFTWPROxFTW
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.
Last Edit: January 26, 2016, 12:21:44 am by PROxFTW
broken avatar :(
×
broken avatar :(
The King of Zombies
Location: usLouisiana
Date Registered: 24 June 2013
Last active: 4 years ago
Posts
2,148
Respect
Forum Rank
King of the Zombies
Primary Group
Donator ♥
My Groups
More
My Contact & Social Links
More
×
Dust's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Dust's Contact & Social LinksMrZ0mbiesFanaticdust103194MrZ0mbiesFanatic
Building off of PROxFTW, I found this:

Code Snippet
Plaintext
Summary:
Creates a "Magic" grenade from an actor.


Call this on:
an Actor


Example:
self MagicGrenade( self.origin, target.origin, 2.0 );


Required Args:
1 : <origin> The starting point of the grenade toss
2 : <target position> The target point of the grenade toss


Optional Args
1 : <time to blow> The grenade fuse time in seconds

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.
Marked as best answer by thezombiekilla6 8 years ago
broken avatar :(
×
broken avatar :(
Location: usYork, SC
Date Registered: 15 March 2014
Last active: 5 years ago
Posts
214
Respect
Forum Rank
Mr. Elemental
Primary Group
Community Scripter
My Groups
More
My Contact & Social Links
More
Personal Quote
WaW Scriptor
×
PROxFTW's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Community Scripter Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community.
PROxFTW's Contact & Social LinksPROxFTWPROxFTWPROxFTWPROxFTW
Building off of PROxFTW, I found this:

Code Snippet
Plaintext
Summary:
Creates a "Magic" grenade from an actor.


Call this on:
an Actor


Example:
self MagicGrenade( self.origin, target.origin, 2.0 );


Required Args:
1 : <origin> The starting point of the grenade toss
2 : <target position> The target point of the grenade toss


Optional Args
1 : <time to blow> The grenade fuse time in seconds
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
Code Snippet
Plaintext
Obj MagicGrenadeType( Grenade, OrginToSpawn, Velocity, Time  );
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.
Code Snippet
Plaintext
Player MagicGrenadeType( "fraggrenade", Player.origin, ( 0, 0, 100 ), 1 );
This will spawn at player origin, should move 100 units up, and the 1 I dont know as far as what it represents.
Last Edit: January 26, 2016, 03:02:25 am by PROxFTW
broken avatar :(
×
broken avatar :(
The King of Zombies
Location: usLouisiana
Date Registered: 24 June 2013
Last active: 4 years ago
Posts
2,148
Respect
Forum Rank
King of the Zombies
Primary Group
Donator ♥
My Groups
More
My Contact & Social Links
More
×
Dust's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Dust's Contact & Social LinksMrZ0mbiesFanaticdust103194MrZ0mbiesFanatic
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
Code Snippet
Plaintext
Obj MagicGrenadeType( Grenade, OrginToSpawn, Velocity, Time  );
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.
Code Snippet
Plaintext
Player MagicGrenadeType( "fraggrenade", Player.origin, ( 0, 0, 100 ), 1 );
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
broken avatar :(
×
broken avatar :(
The King of Zombies
Location: usLouisiana
Date Registered: 24 June 2013
Last active: 4 years ago
Posts
2,148
Respect
Forum Rank
King of the Zombies
Primary Group
Donator ♥
My Groups
More
My Contact & Social Links
More
×
Dust's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Dust's Contact & Social LinksMrZ0mbiesFanaticdust103194MrZ0mbiesFanatic
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
Code Snippet
Plaintext
Obj MagicGrenadeType( Grenade, OrginToSpawn, Velocity, Time  );
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.
Code Snippet
Plaintext
Player MagicGrenadeType( "fraggrenade", Player.origin, ( 0, 0, 100 ), 1 );
This will spawn at player origin, should move 100 units up, and the 1 I dont know as far as what it represents.

It works perfectly. Thanks!

For reference later this is the script reference I use as I find the UGX one to be difficult in comparison: http://www.zeroy.com/script/

Also thanks for this website. Will take a look at it
Last Edit: January 26, 2016, 03:23:00 am by thezombiekilla6

 
Loading ...