Scripts / [SOLVED] How to make characters in game not to attack the player

Author
Message
NikolaJanev
1
Years of Service
User Offline
Joined: 24th Sep 2020
Location:
Posted: 24th Sep 2020 19:43
Hi I got the engine a few weeks ago when it was free and i started on making a project and i want characters in my project not to attack the player when its nearby. I tried to set the fire rate in properties of the character but it cant stop the characters not to attack the player. Can you help me that i also watched the first series of game guru tutorial and i cant find anything about it. I also tried to post on forums about this and the button for new thread is not working.

The author of this post has marked a post as an answer.

Go to answer
PM
AmenMoses
GameGuru Master
5
Years of Service
User Offline
Joined: 20th Feb 2016
Location: Portsmouth, England
Posted: 24th Sep 2020 20:06
Will depend on which character as some have custom scripts but for most of them if you set the 'View Range' parameter to a low value, say 1 then that should stop them. (0 actually means infinite range btw)

The firing rate is a weird one, the bigger the value the less often they should fire, but I don't think that has any effect on melee characters.
Been there, done that, got all the T-Shirts!
PM
3com
7
Years of Service
User Offline
Joined: 18th May 2014
Location: Catalonia
Posted: 24th Sep 2020 21:31
Just add the ai_neutral.lua file to the character, via properties panel.
Laptop: Lenovo - Intel(R) Celeron(R) CPU 1005M @ 1.90GHz

OS: Windows 10 (64) - Ram: 4 gb - Hd: 283 gb - Video card: Intel(R) HD Graphics
cpu mark: 10396.6
2d graphics mark: 947.9
3d graphics mark: 8310.9
memory mark 2584.8
Disk mark: 1146.3
Passmark rating: 3662.4

PM
Shiraz
1
Years of Service
User Offline
Joined: 23rd May 2020
Location:
Posted: 25th Sep 2020 13:47
This post has been marked by the post author as the answer.
Hi
The solution is here:
https://forum.game-guru.com/thread/221918
Hope to find your answer.
Good luck
PM

Login to post a reply

Server time is: 2022-01-28 06:27:35
Your offset time is: 2022-01-28 06:27:35