Scripts / Hello have a question about waypoints but I'm not sure where to post

Author
Message
Gamemaker123825
9
Years of Service
User Offline
Joined: 3rd Jun 2015
Location: La Palma CA
Posted: 21st Jun 2019 07:45
Hi, I have a waypoint that a npc followers to a house. I'm looking for a way to make the npc disperse when entering the house and exiting the house in about 10mins. How do I do this. Thanks

sorry if this is in the wrong place I dont know where to put this in the forums.
GubbyBlips
5
Years of Service
User Offline
Joined: 14th Jan 2019
Location:
Posted: 21st Jun 2019 17:30
Well, hello. I'm no expert with scripts, but it
sounds like a pretty much huge undertaking.
It would have to be scripted to move to your house, (not too hard),
go into prowl mode (is that what it's called), and then
seek out another point, which I think is kind of already
in soldier and zombie scripts (which I mean avoid obstacles
and find a route out the door).
So if you had 2 or 3 different scripts that it could switch
between, that would do it. And all this while providing
the AI/ +animations...
PM
smallg
Community Leader
19
Years of Service
User Offline
Joined: 8th Dec 2005
Location:
Posted: 21st Jun 2019 18:27
Quote: "I'm looking for a way to make the npc disperse when entering the house"

do you mean you want it to disappear?
i would make an object to check the distance from (like the door of the house) then make the character hide(e) when within range and use a timer to continue the code after
so if we borrow honkey's pathing script from the post below
lua guide for GG
https://steamcommunity.com/sharedfiles/filedetails/?id=398177770
windows 10
i5 @4ghz, 8gb ram, AMD R9 200 series , directx 11

Login to post a reply

Server time is: 2024-12-22 14:28:24
Your offset time is: 2024-12-22 14:28:24