Search the Community
Showing results for tags 'api'.
Found 3 results
For example: local bd; local function fnEveryTenMinutes() if not bd then bd = getPlayer():getBodyDamage(); end ..... end Events.EveryTenMinutes.Add(fnEveryTenMinutes); I think it should reduce overhead on api calls.
character:getBodyDamage():setInf(true); character:getBodyDamage():getBodyPart(BodyPartType['Head']):SetInfected(true) character:getBodyDamage():setInfectionLevel(50); --doesn't work I tried this code. But infection level starts from zero and growing, ignoring setInfectionLevel() whenever I use it.
Hello, As title says, is there some sort of API to detail what Java classes and methods are accessible via mod scripts ? I suppose all java public classes and methods are not accessible so i'm left thinking a specific javadoc or sth may prevent from relying too much on other people's scripts, to know what it's possible to do. Concretely, i was thinking about instantiating a character ( yeah i know NPCs are not back yet ), and assuming it's technically possible, i'd have no clue on how to do it : Zombie.Character.spawn() ? And then how can I know which methods of my character can be called in my scripts ? I searched this forum as well as pz-mod.net without results, and all i found was the Events reference, which is useful but has a limited scope. So if anybody has any insight, please enlighten me. PS : as a thanks for reading my concerns, i'll disclose a top-secret information to you all :