AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting (https://forums.alliedmods.net/forumdisplay.php?f=107)
-   -   How to make stocks with already existing methomaps? (https://forums.alliedmods.net/showthread.php?t=302771)

Papero 11-10-2017 13:12

How to make stocks with already existing methomaps?
 
Hi,

Is there any way to make stocks of already existing methodmaps, without editing the main file.inc?
Like, I want to create a new stock: arraylist.GetBool(int index) (I know that is pretty unseful, just for example)

How can I do it?

Fyren 11-10-2017 16:37

Re: How to make stocks with already existing methomaps?
 
If you're asking if you can modify the ArrayList methodmap definition without editing the SM includes, no. If you want to make your own methodmap that extends ArrayList, you can. The syntax for inheritance is methodmap Derived < Base.

Stocks don't have anything to do with this.


All times are GMT -4. The time now is 02:32.

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