AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Can you get a sprites frames? (https://forums.alliedmods.net/showthread.php?t=93422)

zacky 05-28-2009 15:36

Can you get a sprites frames?
 
Hi, is there anyway to get how many frames a sprite has?

Thanks
- zacky

Arkshine 05-28-2009 16:26

Re: Can you get a sprites frames?
 
Using EngFunc_ModelFrames.

So : engfunc( EngFunc_ModelFrames, YourModelIndex );

YourModelIndex you retrieve it from precache_model() or using EngFunc_ModelIndex.

zacky 05-28-2009 16:50

Re: Can you get a sprites frames?
 
Quote:

Originally Posted by arkshine (Post 836825)
Using EngFunc_ModelFrames.

So : engfunc( EngFunc_ModelFrames, YourModelIndex );

YourModelIndex you retrieve it from precache_model() or using EngFunc_ModelIndex.

Thanks :crab:


All times are GMT -4. The time now is 13:52.

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