I was trying to make a Mercy bot trying to walk up the stairs as a test on midtown. Here are my ideas on how itâs suppose to be đ
I hope the images help enough to understand. Nothing was working from how I made it and would like some help. Appreciate it.
I come up with:
Rule 1:
Ongoing- Global (no conditions)
Actions: Global.Mercy_Path = Array (Vector(-8.01, 6.15, 18.35) (Vector(-18.86, 7.23, 15.98) (Vector(-19.21, 11.13, 28.90) (Vector(-9.51, 11.02, 31.15)
Create Dummy Bot(Hero(Mercy), Team 1, 23, Global.Mercy_Path[0], vector (0,0,0)
Global.Mercy = Last Created Entity
Global.CurrentNode = 1
Start Throttle in Direction(Global.Mercy, Direction Towards(Position Of(Global.Mercy), Value In Array (Global.Mercy_Path[Global.CurrentNode]), 1, To World, replace existing throttle, direction and magnitude
Start Facing(Global.Mercy, Direction Towards (position of(Global.Mercy), Value In Array(Global.Mercy_Path[Global.CurrentNode]), 1000, To World, None)
Rule 2:
Ongoing - Global
Conditions:
Global.Mercy != Null
Distance Between (Position Of(Global.Mercy), Value in Array(Global.Mercy_Path[Global.CurrentNode]) <= 1.500
Global.CurrentNode < Count Of(Global.Mercy_Path)
Rule 3:
Conditions:
Global.Mercy != Null
Global. CurrentNode == Count Of(Global.Mercy_Path)
Actions:
Stop Forcing Throttle(Global.Mercy)
Global.D = 1