Action GetMeal not working
Posted: Sun Sep 23, 2018 2:58 pm
Hi everyone, I am trying to create a small serving table for my snitch canteen! The object is 2 width instead of 5 and has 2 slots. So far everything was working good except 2 things that I don't seem able to fix. The main problem is that prisoner don't get the meal out of it despite the cooked food and stacked trays the cooks put on it. Of course it is in the canteen during lunch time. I tried it also on the staff room and same result, staff do not touch the food that are on it. I even created a clone of the serving table changing only the name (same sprites, slots and everything else) and I encountered the same problem!
I wonder if the action GetMeal is hard coded only to the Serving Table or did I missed something?
Also the second problem is that the trays and food don't stack the way I want on it, I added marker but it only affect the first sprites, other orientations don't use the markers. Do someone know how to add marker for every orientation of the sprite?
I wonder if the action GetMeal is hard coded only to the Serving Table or did I missed something?
Also the second problem is that the trays and food don't stack the way I want on it, I added marker but it only affect the first sprites, other orientations don't use the markers. Do someone know how to add marker for every orientation of the sprite?
Code: Select all
BEGIN Object
Name SmallServingTable
Width 2
Height 1
ConstructionTime 1.00000
MoveSpeedFactor 0.800000
Price -20
NumSlots 2
RenderPostOffset 2
Group StaticObject
BlockedBy Wall
BlockedBy StaticObject
BlockedBy UtilityStation
MadeOf Composite
ToolbarSprite ServingTableToolbar
Properties StaticObject
Properties RoomSpecific
BEGIN Sprite
x 0
y 1
w 4
h 3
RotateType 1
BEGIN Marker x 1 y 1 orientation.x 1 orientation.y 1 Index 0 END
BEGIN Marker x 3 y 1 orientation.x 1 orientation.y 1 Index 1 END
END
END
Code: Select all
BEGIN Provider
Action GetMeal
ProviderType Object
Object SmallServingTable
Slot 0
Regime Eat
PrimaryNeed Food
PrimaryRate 0.000000
ActionType Eat
END
BEGIN Provider
Action GetMeal
ProviderType Object
Object SmallServingTable
Slot 1
Regime Eat
PrimaryNeed Food
PrimaryRate 0.000000
ActionType Eat
END