ZDaemon Forum Index ZDaemon
Client/Server DOOM
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

GetAmmoCapacity

 
Post new topic   Reply to topic    ZDaemon Forum Index -> Wad Editing
View previous topic :: View next topic  
Author Message
Mr. Satan
has entered the game!


Joined: 30 Apr 2015

PostPosted: Sat May 09, 2015 5:58 pm    Post subject: GetAmmoCapacity Reply with quote

When I try to call this function I get the error message: PCD_GETAMMOCAPACITY is not implemented yet. Is there another file I have to include, other zcommom.acs?
Back to top
View user's profile Send private message
Zedek
has entered the game!


Joined: 10 Mar 2013
Location: Tijuana, México

PostPosted: Sat May 09, 2015 10:07 pm    Post subject: Reply with quote

No, as the error says, Zdaemon hasn't implemented that function.
Back to top
View user's profile Send private message
Mr. Satan
has entered the game!


Joined: 30 Apr 2015

PostPosted: Sun May 10, 2015 1:42 am    Post subject: Reply with quote

Is there another function/property I can use that returns the same value?
Back to top
View user's profile Send private message
Zedek
has entered the game!


Joined: 10 Mar 2013
Location: Tijuana, México

PostPosted: Sun May 10, 2015 2:04 am    Post subject: Reply with quote

i made this function....looks dumb i know
Code:

function int getammocapacity2(str ammo)
{
int current=checkinventory(ammo);
giveinventory(ammo,10000);
int cap = checkinventory(ammo);
takeinventory(ammo,1000);
giveinventory(ammo,current);
return cap;
}


paste it somewhere in your code and test it.
call it like the original but instead :
getammocapacity2("AMMO NAME HERE");
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    ZDaemon Forum Index -> Wad Editing All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group