View previous topic :: View next topic |
Author |
Message |
gizzy
Joined: 23 Apr 2006 Posts: 37
|
Posted: Sun Apr 05, 2009 11:42 pm Post subject: Command To Change Projectile And Alt-Projectile Of A Weapon. |
|
|
I'm working on my new weapon pack, and I'm a bit stuck with an idea I had I am trying to make an all-purpose weapon, that can have It's projectile (And alt-proj) changed with a command. The way I have it at the moment is "Setproj [Projectile]" and " Setaltproj [Altprojectile]".
Code: | simulated exec function setproj(string SelectedProj) //Type "setproj" To Set A Projectile
{
local class<Projectile> TempProjClass;
}
|
If someone could help me with this, it would be greatly appreciated.
The string is there so the player knows what projectile they have selected. For example:
Code: | Instigator.ClientMessage("Projectile Class Set To: "$SelectedProj); |
That would work, right? |
|
Back to top |
|
|
mental-HunteR
Joined: 05 May 2006 Posts: 363 Location: The Netherlands
|
Posted: Mon Apr 06, 2009 3:26 pm Post subject: |
|
|
I don't know. I never tryd this, i'm curious to _________________
|
|
Back to top |
|
|
Bleeder91
Joined: 28 Sep 2006 Posts: 265
|
|
Back to top |
|
|
[B@D]Thug
Joined: 07 Oct 2005 Posts: 315
|
Posted: Sun Apr 12, 2009 3:56 pm Post subject: |
|
|
Your saying... a function that you can use a command to switch the projectile?? I like it. Now, hmm... _________________ Improvements along the way friends and foes.
WebSite:www.freewebs.com/agressivetoys |
|
Back to top |
|
|
gizzy
Joined: 23 Apr 2006 Posts: 37
|
Posted: Sun Apr 12, 2009 3:57 pm Post subject: |
|
|
That is exactly what I am saying, yes. |
|
Back to top |
|
|
|