I would like more character actions exposed to Lua.
setcommand({type="gotolocation"}) - similar to Lua/Unit
selectedgunindex - make writeable
fire gun
throw capsule
mine
toggle item auto pick-up
Better character API
Re: Better character API
entity.walkingstate will let you control the player's movementDaveMcW wrote:I would like more character actions exposed to Lua.
setcommand({type="gotolocation"}) - similar to Lua/Unit
selectedgunindex - make writeable
fire gun
throw capsule
mine
toggle item auto pick-up
selectedgunindex is already writeable
entity.miningstate will let you control the player's mining
As the others, those aren't bad ideas. I'll see what Kovarex says. If he's ok with them I could add them.
If you want to get ahold of me I'm almost always on Discord.
Re: Better character API
Cool. You might want to put a bounds check on it.Rseding91 wrote:selectedgunindex is already writeable
Seems like a waste to write my own pathfinding code when you already have an API for it.Rseding91 wrote:entity.walkingstate will let you control the player's movement