Hyper.nl Unreal Services Forum Index Hyper.nl Unreal Services
The forum of Hyper.nl Unreal Services and the semi-offical resource for Winged Unicorn's Unreal mods
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Command To Change Projectile And Alt-Projectile Of A Weapon.

 
Post new topic   Reply to topic    Hyper.nl Unreal Services Forum Index -> HelpDesk
View previous topic :: View next topic  
Author Message
gizzy



Joined: 23 Apr 2006
Posts: 37

PostPosted: Sun Apr 05, 2009 11:42 pm    Post subject: Command To Change Projectile And Alt-Projectile Of A Weapon. Reply with quote

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
View user's profile Send private message Send e-mail MSN Messenger
mental-HunteR



Joined: 05 May 2006
Posts: 363
Location: The Netherlands

PostPosted: Mon Apr 06, 2009 3:26 pm    Post subject: Reply with quote

I don't know. I never tryd this, i'm curious to
_________________
Back to top
View user's profile Send private message Yahoo Messenger MSN Messenger
Bleeder91



Joined: 28 Sep 2006
Posts: 265

PostPosted: Tue Apr 07, 2009 9:36 am    Post subject: Reply with quote

first thing i come up with, is the summon command. try copying som things from that, and replace the spawn(<class>) thingy with: Projectileclass = <class>
_________________
Unreallity - Wrath of the Skaarj is still developing! Check out the new refreshing website!
Back to top
View user's profile Send private message Send e-mail Visit poster's website
[B@D]Thug



Joined: 07 Oct 2005
Posts: 315

PostPosted: Sun Apr 12, 2009 3:56 pm    Post subject: Reply with quote

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
View user's profile Send private message AIM Address MSN Messenger
gizzy



Joined: 23 Apr 2006
Posts: 37

PostPosted: Sun Apr 12, 2009 3:57 pm    Post subject: Reply with quote

That is exactly what I am saying, yes.
Back to top
View user's profile Send private message Send e-mail MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    Hyper.nl Unreal Services Forum Index -> HelpDesk All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group