-
Notifications
You must be signed in to change notification settings - Fork 1
NPC ordering
Martijn René van der Meer edited this page Mar 14, 2024
·
2 revisions
The system that allows client penguins to order food.
Methods | Return | Description |
---|---|---|
+ DeliverOrder(Dish)
|
void |
Gives the param Dish to the NPC |
+ GetOrder
|
Dish[] |
Starts the Order timer on the NPC and gives a random order to fulfill |
+ SendNpcAway
|
void |
Stops the Order timer on the NPC, tells the Score Manager to increase score by the amount from SetScore and sends the NPC away |
- SetScore
|
int |
Gets the amount of time left, multiplies it by the amount of correct dishes and returns the result |
- FillOrder
|
void |
Decides how many dishes an NPC will order and gives a random dish for each. |
You want to see how it works? Look at the following scripts: