Scripts / helper path finding script

Author
Message
smallg
Community Leader
19
Years of Service
User Offline
Joined: 8th Dec 2005
Location:
Posted: 30th Mar 2019 16:15
quick video of my WIP script that points the player in the direction of his objective - uses the AI pathing system to find a valid route rather than a simple compass direction


i'll put together some simple example quest chain scripts to go with it but if anyone wants to play with it you need to make sure you have an always active object which is a character (i.e. ischaracter = 1 in the fpe file) then set current_objective = # (number of entity you want to find) in your quests
you can also use isObjective[e] = e in your init(e) scripts of objects you want to find to use the function at the bottom (with current_objective = AddQuestObjective() )to find the closest objective at any time to the player (good for real time hunting or collecting moving objects etc)
lua guide for GG
https://steamcommunity.com/sharedfiles/filedetails/?id=398177770
windows 10
i5 @4ghz, 8gb ram, AMD R9 200 series , directx 11

Attachments

Login to view attachments
Pirate Myke
Forum Support
14
Years of Service
User Offline
Joined: 31st May 2010
Location: El Dorado, California
Posted: 30th Mar 2019 19:29
Pretty cool. Thank you.
RIP
Intel(R) Core(TM)2 Quad CPU Q6600 @ 2.40GHz, 2400 Mhz, 4 Core(s), 4 Logical Processor(s), 8gb RAM, Nvidia gtx660, Windows 7 Pro 64bit, Screen resolution 1680 x 1050.

New:
Intel(R) Core(TM) i5-8400 CPU @ 2.81GHz, 12GB RAM, Nvidia gtx1050ti 4gb, Windows 10 Home 64bit, Screen resolution 1920 x 1080. System Passmark 3774




GubbyBlips
5
Years of Service
User Offline
Joined: 14th Jan 2019
Location:
Posted: 22nd May 2019 15:15
Nice. Waaaayyyy nice!
PM

Login to post a reply

Server time is: 2024-12-22 14:03:29
Your offset time is: 2024-12-22 14:03:29