单位怎么做随机点巡逻
看了大佬帖子知道固定巡逻不会随机 (defrule(true)
=>
(up-get-point position-map-size map-size-x)
(disable-self)
)
(defrule
(true)
=>
(generate-random-number 240)
(up-get-fact random-number 0 temp-x)
(up-get-fact random-number 0 temp-y)
(up-modify-goal temp-x g:mod map-size-x)
(up-modify-goal temp-y g:mod map-size-x)
(up-target-point temp-x 2 -1 -1)
)
blazefires 发表于 2020-5-23 19:07
(defrule
(true)
=>
谢谢 解答
页:
[1]