logo
Main

Forums

Downloads

Unreal-Netiquette

Donate for Oldunreal:
Donate

borderline

Links to our wiki:
Wiki

Walkthrough

Links

Tutorials

Unreal Reference

Usermaps

borderline

Contact us:
Submit News
Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic How to make a weapon non-droppable? (Read 2382 times)
Devil Master
Junior Member
**
Offline


Oldunreal member

Posts: 54
Joined: Jun 18th, 2011
Gender: Male
How to make a weapon non-droppable?
Jul 3rd, 2014 at 11:20am
Print Post  
I have made a pseudo-weapon that does not use ammo, deals 0 damage and is invisible. I derived it from the automag and called it "interactor" because I use it as a quick implementation of a "use" button (despite dealing no damage, the shots still activate the triggers that activate when shot).
However, if I press the "drop weapon" key while holding the interactor... it gets dropped. I don't want this, because it results in the inability of activating buttons except by shooting them with visible weapons. I want to maintain the illusion that the player character is pushing those buttons, not shooting them, so how can I make it impossible to drop the interactor?

(Note: simply remapping the "drop weapon" key would create another problem, because I'm also using a vehicle mod that uses that key to exit from vehicles)
  
Back to top
 
IP Logged
 
AlCapowned
Full Member
***
Offline


Oldunreal member

Posts: 168
Joined: Dec 22nd, 2009
Re: How to make a weapon non-droppable?
Reply #1 - Jul 3rd, 2014 at 11:26am
Print Post  
Set bCanThrow to false in the default properties.
  
Back to top
 
IP Logged
 
Devil Master
Junior Member
**
Offline


Oldunreal member

Posts: 54
Joined: Jun 18th, 2011
Gender: Male
Re: How to make a weapon non-droppable?
Reply #2 - Jul 3rd, 2014 at 12:41pm
Print Post  
That easy? Thank you!
  
Back to top
 
IP Logged
 
SFJake
Full Member
***
Offline


Oldunreal member

Posts: 248
Joined: Aug 15th, 2010
Gender: Male
Re: How to make a weapon non-droppable?
Reply #3 - Jul 5th, 2014 at 3:57pm
Print Post  
Wouldn't an item for this be more appropriate? Just a thought.
  
Back to top
 
IP Logged
 
gopostal
Betatester
Offline


Hack coder

Posts: 942
Joined: Jul 31st, 2008
Gender: Male
Re: How to make a weapon non-droppable?
Reply #4 - Jul 5th, 2014 at 5:32pm
Print Post  
Yeah, it'd be a lot cleaner to have this in the player's inventory. You'd have more control.
  

I don't want to give the end away
but we're all going to die one day
Back to top
 
IP Logged
 
Bleeder91[NL]
Betatester
Offline


Personal Text:

Posts: 1018
Location: Location, Location, Location.
Joined: Oct 4th, 2009
Gender: Male
Re: How to make a weapon non-droppable?
Reply #5 - Jul 7th, 2014 at 9:08am
Print Post  
Or in the case this is for a custom map you're making, set the buttons to bUseTriggered and set the initial state to a Trigger type. This way, you can use the Grab command to "Use" movers (bound to the G key by default).
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint
Bookmarks: del.icio.us Digg Facebook Google Google+ Linked in reddit StumbleUpon Twitter Yahoo