This is possible, yes.
Coalition.rte/Actors/Blast Runner/
has an example of a pie menu button on an actor. You can edit the BlastRunner.ini to make the actor usable in-game by changing Buyable = 0 to 1, if you want to play around with it.
The code that adds the pie menu button to the actor -
Code:
AddPieSlice = Slice
Description = Detonate
Direction = 2
Icon = Icon
PresetName = Blast Runner Detonate
FrameCount = 2
BitmapFile = ContentFile
FilePath = Coalition.rte/Devices/Sprites/PieIcons/IconDetonate.bmp
ScriptPath = Coalition.rte/Actors/Blast Runner/BlastRunnerPie.lua
FunctionName = BlastRunnerDetonateCall
If you want to add an item to an actor's inventory, have something like this in your lua script:
Code:
local item = CreateHDFirearm("Heavy Digger");
actor:AddInventoryItem(item);