Scripts / LUA Script for AI / NPC to seek out player(s)

Author
Message
Info-Shock Software
8
Years of Service
User Offline
Joined: 10th May 2015
Location:
Posted: 10th May 2015 15:24
Hi all I am having trouble getting my AI's / NPC's to follow my waypoints so I have decided to make them randomly seek out the Player(s) but all they do is stand still they refuse to move until they see my character please can some one help me.

Thank you

IS-S
smallg
Community Leader
18
Years of Service
User Offline
Joined: 8th Dec 2005
Location:
Posted: 10th May 2015 16:19
do you have any code?
life\'s one big game

windows vista ultimate

i5 @3.3ghz, 4gb ram, geforce gtx460, directx 11
Info-Shock Software
8
Years of Service
User Offline
Joined: 10th May 2015
Location:
Posted: 10th May 2015 20:39
hi yeah sorry forgot to post it.
It's the ai_fastzombie.lua file so I have uploaded it for you all to view.
IS-S

Attachments

Login to view attachments
Pirate Myke
Forum Support
13
Years of Service
User Offline
Joined: 31st May 2010
Location: El Dorado, California
Posted: 12th May 2015 23:19
Zombies will not follow waypoints unless you include the waypoint code from any soldier script. They do not have the animations to walk waypoints with out looking strange. Why they are free roaming characters and there actions are based on range from the player.

Only the soldiers will follow waypoints right now with default scripts.

If you add the waypoint code into your script then they will walk the waypoints, But you will need to do some heavy rewriting of the scripts.
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

Info-Shock Software
8
Years of Service
User Offline
Joined: 10th May 2015
Location:
Posted: 13th May 2015 16:03
Thanks for the help I will start rewriting the file to allow Zombies to follow waypoints once I have finished I'll upload it to this thread so you all can use it as well
IS-S

Login to post a reply

Server time is: 2024-05-08 02:15:06
Your offset time is: 2024-05-08 02:15:06