Raised This Month: $ Target: $400
 0% 

Set something like a bool to an entity


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 06-11-2010 , 19:59   Re: Set something like a bool to an entity
Reply With Quote #1

Sounds like you are creating a weapon for a player and when dropped it becomes a weaponbox entity. You want to make it so when another player picks it up (touches the weaponbox), he gets the same weapon that the original player dropped?

Try this
PHP Code:
//Set weapon ID to weaponbox entity
set_peviEntity pev_iuser1 WeaponID );

//When touched, retrieve weapon ID from entity
WeaponID peviEntity pev_iuser1 ); 
__________________

Last edited by Bugsy; 06-11-2010 at 20:17.
Bugsy is offline
Reply



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 14:44.


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