Scripts / [SOLVED] Trying to give AI Robot a gun.

Author
Message
Incenseman2003
5
Years of Service
User Offline
Joined: 4th Nov 2018
Location:
Posted: 24th Jan 2019 00:56
I have tried different approaches and cannot seem to get this to work.
I am trying to give this IA a weapon to fire .
There is no item in the settings for this and even with the "hasweapon" set to "1" I do not get the option to choose a gun.
I have tried to change the "ai_unarmed.lua" to many different scripts and still nothing.
I have tried different FPE changes as well.
Is there a way to get this to work?
There are far to few enemies that fire weapons in GG.
I am looking to mix it up a bit.

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

Go to answer

Attachments

Login to view attachments
PM
Pirate Myke
Forum Support
13
Years of Service
User Offline
Joined: 31st May 2010
Location: El Dorado, California
Posted: 24th Jan 2019 04:32 Edited at: 24th Jan 2019 04:32
You need to add this to the FPE files and point to the folder of the weapon you want to use.
hasweapon = modern\colt1911
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 gtx660, Windows 10 Home 64bit, Screen resolution 1920 x 1080. System Passmark 3774




Incenseman2003
5
Years of Service
User Offline
Joined: 4th Nov 2018
Location:
Posted: 24th Jan 2019 21:30
And what lua script would be used?
PM
bluemeenie195
5
Years of Service
User Offline
Joined: 28th Oct 2018
Location:
Posted: 25th Jan 2019 17:54
This post has been marked by the post author as the answer.
This script will work with that character.

Attachments

Login to view attachments
PM
Incenseman2003
5
Years of Service
User Offline
Joined: 4th Nov 2018
Location:
Posted: 26th Jan 2019 14:36 Edited at: 27th Jan 2019 16:41
That works great.
Thanks a lot.
I just have to figure out how to get the gun to fit in his hand better and it will be good to go.

Edit: Turns out that I can see no way to make this happen.
Have to work with it the way it is.
PM
smallg
Community Leader
18
Years of Service
User Offline
Joined: 8th Dec 2005
Location:
Posted: 27th Jan 2019 21:15
edit the model in some 3D program (like fragmotion) and move the bone called FIRESPOT to the desired location
lua guide for GG
https://steamcommunity.com/sharedfiles/filedetails/?id=398177770
windows 10
i5 @4ghz, 8gb ram, AMD R9 200 series , directx 11
Incenseman2003
5
Years of Service
User Offline
Joined: 4th Nov 2018
Location:
Posted: 28th Jan 2019 01:56
I have experience in modeling.
Sounds easy enough.

Thanks.
PM

Login to post a reply

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