Raised This Month: $ Target: $400
 0% 

Register touch and pick up?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Davidos
Senior Member
Join Date: Feb 2005
Old 02-20-2007 , 04:19   Re: Register touch and pick up?
Reply With Quote #3

Wow, Sorry about that... late night yesterday...

Ok.

So, I have set up a basic inventory mod that allows you to pick up stuff from the ground and put them into your inventory.

Now frankly, the problem is... I have no idea how to make a script so you can pick an item up (Ammo, batteries etc.), delete the ent of the picked up item, and make it so that when you use it in your inventory,
it doesn't get re-added to your inventory in like 4 seconds, but is picked up by the player in game <so it gives you ammo and then disapears mod based, like how you would pick up anything in normal half-life 1>...


Code:
give item_healthkit //spawns healthkit in player


So frankly, if someone could write up an example/tutorial on how to use the
pfn_touch function, I can learn from that -_-.

Do you understand now?

Code:
pfn_touch(ent,id)
that's as far as my knowledge takes me...

Last edited by Davidos; 02-20-2007 at 04:31.
Davidos is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 00:42.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode