#roaming trader npc
1 messages · Page 1 of 1 (latest)
You could have a script which keeps track of whether its moving between waypoints. That script could also detect when an interaction starts and signal the other part of the script to stop roaming
I.e.
local isRoaming = true
roamfunction()
…
if isRoaming == true then
…
end
startInteraction()
…
isRoaming = false
… do interaction
end
endInteraction()
…
startRoaming = true
…
end
Not actual code but it should help you get an image of it
im really new but it does help a little