Is there anyway to use the add object actuator to add waypoints for enemies to follow?
yes, give the waypoints an specific name, then let the enemie chek for all object in the scene whit that name (use somthing like:
for “enemie” in scene:), then let the enemie track to the closest/next/last spawned object whit that name. it all can be done in python quit easy
But how do i get add object to emit the object with the property one time?When a near sensor detects the property of the player?
this asums that every waypoynt have an prop called “point” whit the wallu of 1 when added
do something like this:
##import logic and get scene/script holding obj######
import bge
cont = bge.logic.getCurrentController()
obj = cont.owner
scene = bge.logic.getCurrentScene()
## chek if script holder got an value named point, and if it is equal to 1
if obj["point"] == 1
scene.addObject('name of object to add', obj)
obj["point"] = 2 #asigning prop to 2 so that the script don't run agen
I think delay sensor is better with using monsters S2A script.I am making a in game level editor that uses waypoint.Which are added with the add object object actuator.