Raised This Month: $ Target: $400
 0% 

Linking an Entity to a Bool


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
wrecked_
Veteran Member
Join Date: Jan 2010
Location: New York (GMT-5)
Old 02-07-2010 , 21:07   Re: Linking an Entity to a Bool
Reply With Quote #5

What I'm trying to do is get each pistol and set different properties to the different pistols in the map. So, what I'd probably need to do is get the amount and set the entities to have different properties using bools.

So I'd do something like
PHP Code:
new b_HasSpeed[ENTITY_AMOUNT]
new 
b_IsGlowing[ENTITY_AMOUNT]
new 
b_HasGravity[ENTITY_AMOUNT]

// Get the entity ID's for each gun through pevs, etc.

// Now set the properties
b_HasSpeed[e_USPEnt] = true
b_IsGlowing
[e_DeagleEnt] = true
b_HasGravity
[e_GlockEnt] = true

/* And so on with the entities.
Keep in mind this is an example, but very similar to what I'm trying to do&*/ 
Thanks for the help.
__________________
[ Paid Requests ]
DO NOT PM ME ABOUT BLOCKMAKER
NO PRIVATE SUPPORT
wrecked_ 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 07:25.


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