Project Zomboid

Project Zomboid

评价数不足
JB_ASSUtils [B42] for Modders
   
奖励
收藏
已收藏
取消收藏
文件大小
发表于
更新日期
1.542 MB
3 月 5 日 下午 12:46
4 月 22 日 下午 5:05
4 项改动说明 ( 查看 )

订阅以下载
JB_ASSUtils [B42] for Modders

描述
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