Morry Posted September 14, 2017 Share Posted September 14, 2017 OnAIStateChange is not called in one of the changeState functions. Also please make it trigger after the state change happens so it's possible to revert state changes. And on the subject of StateMachine.class, it is not exposed to the LuaManager. Please expose the StateMachine.class. Quote Link to comment Share on other sites More sharing options...
tserj Posted March 6, 2018 Share Posted March 6, 2018 Hi, is that possible to add something like getCustomBuildArea(...)? A lot of modders and many of gamers want to make their objects private in multiplayer game. Right now it is possible only to game-own houses, but not for a custom buildings. Just an example it will be worth to retrieve area based on the custom floors. Returns an area if custom build floor is connected to the in-game building OR (floor area have a square more than YxY AND this area is the first player floor object [preventing a lot of small floors on a map]). I.e. the idea is to have in-game mechanism that clarify custom buildings. Quote Link to comment Share on other sites More sharing options...
Rusty_knight Posted March 23, 2018 Share Posted March 23, 2018 Is it possible to change sandbox world settings in a running game? Quote Link to comment Share on other sites More sharing options...
Josko Posted November 13, 2018 Share Posted November 13, 2018 What about OnUnequipPrimary? Does that exist? Quote Link to comment Share on other sites More sharing options...
Maris Posted December 3, 2018 Share Posted December 3, 2018 Please add API for custom moodles. Bejasc and cool daddy shark 2 Quote Link to comment Share on other sites More sharing options...
Maris Posted December 25, 2018 Share Posted December 25, 2018 (edited) Barricade health get/set. P.S. If try to inject game code in multiplayer and set barricade health over 450, it becomes invisible. (Bug?) Inject code: https://pastebin.com/J0H676Gf Edited December 25, 2018 by Maris Quote Link to comment Share on other sites More sharing options...
Maris Posted January 4, 2019 Share Posted January 4, 2019 (edited) - OnScratched (one event for scratches, bites, fractures etc with details which type, is infected or not, what zombie/player/item causes wound etc) - OnTreatment (one event for scratches, bites, fractures etc with details what is doctor level, used items etc) - OnHit (by zombie on humans and walls) - EveryOneMinute - good alternative to OnPlayerUpdate - OnDrop(item) - OnPickup(item) - OnUse(item) - very important event which makes possible very interesting mods with vanilla (or custom) consumables. - OnDeplete(item) And it would be very nice to see the documentation for all existing events. Thank you! Edited January 4, 2019 by Maris Quote Link to comment Share on other sites More sharing options...
Dr_Cox1911 Posted January 17, 2020 Share Posted January 17, 2020 This thread is rather old, but I still hope that the devs are looking in here from time to time. I'm currently coding a mod where the helicopter drops a crate with loot in it. The basic functionality is already done, but I'm now struggling with the helicopter. The Helicopter.class is not exposed to Lua, so I can't instantiate a new one. The one instantiated in IsoWorld is not really accessible. So I hope that you (@TIS) can expose the Helicopter.class so that I can set a target with Lua using the "setTarget()" method. Quote Link to comment Share on other sites More sharing options...
Aiteron Posted October 23, 2020 Share Posted October 23, 2020 Working with 3D models through Lua code (add/remove, move, scale, etc.). I tried to add a cable model to the Towing a car mod, but nothing came of it. Didn't find a way to add my own model and move it in space (and draw). The lua manager has a method loadZomboidModel-, but it is not used anywhere and it does not help here (you still cannot draw). Quote Link to comment Share on other sites More sharing options...
Aiteron Posted November 1, 2020 Share Posted November 1, 2020 Get light value of square (want to make panic when too dark) Quote Link to comment Share on other sites More sharing options...
Aiteron Posted November 15, 2020 Share Posted November 15, 2020 Change freeze system for food (that affect on roting). Let it depend on the temperature of the container. Example - I want create movable cooler box. I can set custom temperature, but in class Food in method updateAge asking for working electrecity in square. (need way to create freezer too) Quote Link to comment Share on other sites More sharing options...
harrycheez Posted November 20, 2020 Share Posted November 20, 2020 We need a function to change modelWeaponPart and mountOn without rewriting all the script. Quote Link to comment Share on other sites More sharing options...
Asilar Posted November 22, 2020 Share Posted November 22, 2020 Hi, Would it be possible to have a function that return the full date without having to rebuild it from ground ? And also a function that calculate time past between 2 dates without having to rebuild the whole gregorian calendar functions ? Thanks a lot for the great job ! Quote Link to comment Share on other sites More sharing options...
Tiax Posted November 27, 2020 Share Posted November 27, 2020 Request: OnInventoryItemTooltip It would be nice, if mods could implement dynamic tooltips on inventory items, based on the game's or character's state. Example: achieve something like the vanilla game's "already read" on literature items. Quote Link to comment Share on other sites More sharing options...
Asilar Posted November 28, 2020 Share Posted November 28, 2020 This is doable Tiax. I do it very often in the mod I'm working on. You have to use ModData and item:setToolTip(). I can give you some code and/or help you if you want, just ping me on discord. Quote Link to comment Share on other sites More sharing options...
Tiax Posted December 1, 2020 Share Posted December 1, 2020 (edited) On 11/28/2020 at 6:14 PM, Asilar said: This is doable Tiax. I do it very often in the mod I'm working on. You have to use ModData and item:setToolTip(). I can give you some code and/or help you if you want, just ping me on discord. Doing it like that seems like a bit of a hack though, since you're changing it globally, not just based on the current player? Edit: this *has* to be done with an event. You could have multiple players look at an item in a container. You will need to show each player a tooltip based on the player's state, which may not be the same one, when sticking to the read/unread example. Edited December 2, 2020 by Tiax Quote Link to comment Share on other sites More sharing options...
Tchernobill Posted September 8, 2021 Share Posted September 8, 2021 (edited) Can it be done that the following static method returns IsoFire instance(success) or Null/Nil(failure) instead of void ? IsoFireManager.StartFire(cell, square, b, energy, life); It would open a great door to fire manipulation from Lua. Edited February 11, 2022 by Tchernobill Quote Link to comment Share on other sites More sharing options...
Aiteron Posted November 23, 2021 Share Posted November 23, 2021 GetSaveFileReader and GetSaveFileWriter. Sometimes useful to write some data to file in save. Now we need litter Lua folder with files like Config_SAVENAME.txt Quote Link to comment Share on other sites More sharing options...
nigel Posted February 11, 2022 Share Posted February 11, 2022 I think it would be super freaking cute if there would be an event which fires when the character speaks (says a text line) Such as "HEY!" "OVER HERE!" or "I already know that..." and such text which appear over player's head. Basically whenever the `IGUI_PlayerText` appear on screen, there should be an event and that would be super cool. This would in the future also be useful when it fires in case an NPC speaks. yes, it would be cool. On 11/23/2021 at 6:32 PM, Aiteron said: GetSaveFileReader and GetSaveFileWriter. Sometimes useful to write some data to file in save. Now we need litter Lua folder with files like Config_SAVENAME.txt I want this too, It's annoying because everyone has to setup their own system to save stuff. Would be good if saving data into the save would be possible on the server and client. Also per client on the server ( that way we don't need to make our own dictionary per client ) Quote Link to comment Share on other sites More sharing options...
rod Posted February 22, 2022 Share Posted February 22, 2022 (edited) ChangePlayerModel function to set custom models at realtime setHeigth() to change heigth of model Edited February 22, 2022 by rod np Quote Link to comment Share on other sites More sharing options...
FoolBlaysterBruh Posted November 12, 2022 Share Posted November 12, 2022 25% Zoom mod please PLEASE! I posted this on two other discussion bored on this site before I saw this one but anyways id really like to be able to see closer to appreciate the jewelry and make up and small details people get on their characters. I just don't see why have aesthetics like make up and jewelry when no one can see them. When creating new character or applying make up you can see most things but I've never seen the belly button ring or rings on the fingers cause they're just too small. Quote Link to comment Share on other sites More sharing options...
Neznajka Posted December 6, 2022 Share Posted December 6, 2022 Can you please move the set of ItemReplacement inside the DoParam? Quote Link to comment Share on other sites More sharing options...
Staferot Posted February 21 Share Posted February 21 OnVehicleCollide lua event for detecting car collision with another objects (trees, doors, etc.) Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.