Project Zomboid

Project Zomboid

Not enough ratings
JB_ASSUtils [B42] for Modders
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
1.542 MB
5 Mar @ 12:46pm
22 Apr @ 5:05pm
4 Change Notes ( view )

Subscribe to download
JB_ASSUtils [B42] for Modders

Description
This mod does nothing on it's own

Jim Beam Diablo's Area & Square Select Utilities for B42

Returns a single square, a table of selected squares or a square + a table of selected squares

Invoke with a callback function and as many arguments as your cold little heart desires

selectedSquare = IsoGridSquare
selectedArea = { squares = {}, minX = int, maxX = int, minY = int, maxY = int, z = int, areaWidth = int, areaHeight = int, numSquares = int }

Feel free to add this as a requirement, or tear it apart for it's juicy bits, or learn from it if you're new to modding.

Example:

JB_ASSUtils.SelectSingleSquare(worldObjects, playerObj, mySkibidiCallbackFunction, var1, true, function() print("camelCase or die") end)

Context Example:

local option = ISContextMenu:getNew(context)
option:addOption("Change Highlight Color", worldObjects, JB_ASSUtils.PickColor, playerObj)

Workshop ID: 3439101981
Mod ID: JB_ASSUtils