Scripts / Character opening doors question ?

Author
Message
synchromesh
Forum Support
10
Years of Service
User Offline
Joined: 24th Jan 2014
Location:
Posted: 3rd Jun 2016 20:38
Is it possible to intergrate " doorauto.lua " with a character script like " ai_soldier.lua " for example ....
So doors open when characters approach them as well ?
The only person ever to get all his work done by "Friday" was Robinson Crusoe..
PM
smallg
Community Leader
19
Years of Service
User Offline
Joined: 8th Dec 2005
Location:
Posted: 3rd Jun 2016 21:19 Edited at: 3rd Jun 2016 21:19
yes but the AI wont generally run to a closed door as they consider it an obstacle so it would still be pretty random that they would cause it to open.
i tried it once by cheating and turning the collision off if the player (not the AI) wasn't near the door and they do then try to get through the door but it also lets them fire through it....
the best result would be from a rewrite of the AI for an indoor environment but that wouldn't be a quick task.

if you mean while on patrol (following waypoints) and ignoring the aggro logic then yes it can work fairly well
lua guide for GG
https://steamcommunity.com/sharedfiles/filedetails/?id=398177770
windows 10
i5 @4ghz, 8gb ram, AMD R9 200 series , directx 11
synchromesh
Forum Support
10
Years of Service
User Offline
Joined: 24th Jan 2014
Location:
Posted: 3rd Jun 2016 21:25 Edited at: 3rd Jun 2016 21:26
Ahh right ...

I was figuring that the enemy detects the player and from what I have seen they seem to run in that direction even into a solid wall to get near them ..
I thought a tunnel for example ( or my bunker ) with only one direction to run and a set of huge doors might work

The vid is cool
The only person ever to get all his work done by "Friday" was Robinson Crusoe..
PM
smallg
Community Leader
19
Years of Service
User Offline
Joined: 8th Dec 2005
Location:
Posted: 3rd Jun 2016 22:21
well yes but like i say, it's not likely to work smartly - they are just as likely to run into a wall as the door, however you are free to try it and see what happens
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
synchromesh
Forum Support
10
Years of Service
User Offline
Joined: 24th Jan 2014
Location:
Posted: 4th Jun 2016 08:55
Cool Thanks Smallg ... your a star !!
I will let you know on the verdict of a tunnel
The only person ever to get all his work done by "Friday" was Robinson Crusoe..
PM

Login to post a reply

Server time is: 2024-12-22 17:51:50
Your offset time is: 2024-12-22 17:51:50