Execute_RideAnimalOnObject
Description
Puts the BaseObject animal on the nearest object with the S1 object tag in Self's home (residence) site, then plays the ride animation F1 times. The animal gets off when the animation ends. Only the cat wheel is supported for now.
Note
Does nothing if BaseObject is not an animal, the animal is not in Self's home site, or no object with the tag is placed there (objects another animal is riding or walking to are skipped, so two animals never share one cat wheel). The animal jumps on from the floor spot in front of the object (for the cat wheel, its open side) and jumps back down to it. Its simulation position is moved to that spot, where it stands after getting off. Move commands given to the animal while it rides wait until it has got off. Does nothing if the animal is already riding; the interaction waits for that ride with the WaitAnimalRide action. Pair it with the HasObjectTemplateTagInMyResidanceSite condition (BaseObject = Self) on the same tag, and with the AnimalMoveToObject action before it so the animal walks there first.
Parameters
| Parameter | Description |
|---|---|
| BaseObject | The animal that rides (usually Target). |
| S1 | Object tag of the object to ride, searched in Self's home site. |
| F1 | How many times the ride animation plays (1 or more). |
Examples
| Description | BaseObject | Command | S1 | F1 |
|---|---|---|---|---|
| The target cat rides the cat wheel at home once | Target | RideAnimalOnObject | CatWheel | 1 |