Hello,
After a long while I am restarting C3 coding again.
I have an object (say a car) with a moveto behavior, and want an instance of the car to move to an instance of another object.
The car is named, and the first car instance is selected by having in the event a condition that picks the car instance by name.
This worked, and I managed to get the first car instance selected after an event, based on the instance's name, but i don't know how to use the MoveTo command to let car move to a first target object instance.
it seems the only way to do so, is to add another condition to the event that picks the first location by name, which is then "handed" to the moveto ...
For convenience I don't clone object types but have many named instances in the layout of both cars and named locations they can drive to.
Is there a way to decouple the selection of the target object instance from the event condition -- so,once an event is received (e.g. start game), then via some lookup a first target instance name is retrieved which is then used to pick the target instance to move to?
Your help is very much appreciated,
thank you,
Dan