AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Scripting Help (https://forums.alliedmods.net/showthread.php?t=255130)

MadSon 01-11-2015 03:52

Scripting Help
 
So I have this function:
Code:

SetProperty(ent, property, const property_value[]) {
//...
}

So I have another function which creates the entity and sets the property for it using SetProperty, now I want to increment the property value by 1 each time the entity function is called, so how could I do that?

Code:

SetProperty(ent, 1, property); // property ++

fysiks 01-11-2015 04:13

Re: Scripting Help
 
Read the property, add 1, set the property. I think this is straightforward.

If you want any more than that you will need to be much more specific about your problem.


All times are GMT -4. The time now is 15:21.

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