Scripts / Characters open doors

Author
Message
Timba
9
Years of Service
User Offline
Joined: 22nd Apr 2015
Location: Florida
Posted: 6th Aug 2015 15:52
Is there a script that can make characters open doors? Would be nice to have this.
ASUS MAXIMUS VII HERO | Intel Core i7 4790k | 16 GB RAM | EVGA GTX 980 SC | 120GB SSD(OS) | 512GB SSD(Programs) | 1TB WD Black(Backups) | EVGA SuperNova 1000W G1
smallg
Community Leader
19
Years of Service
User Offline
Joined: 8th Dec 2005
Location:
Posted: 6th Aug 2015 18:38
nice idea, i'll write this when im next off if it's not done by then
life\'s one big game

windows vista ultimate

i5 @3.3ghz, 4gb ram, geforce gtx460, directx 11
Timba
9
Years of Service
User Offline
Joined: 22nd Apr 2015
Location: Florida
Posted: 6th Aug 2015 21:19
thx a lot friend
ASUS MAXIMUS VII HERO | Intel Core i7 4790k | 16 GB RAM | EVGA GTX 980 SC | 120GB SSD(OS) | 512GB SSD(Programs) | 1TB WD Black(Backups) | EVGA SuperNova 1000W G1
smallg
Community Leader
19
Years of Service
User Offline
Joined: 8th Dec 2005
Location:
Posted: 8th Aug 2015 12:41 Edited at: 8th Aug 2015 12:44
it's actually quite hard to do as the collision on the door stops them attempting to walk that direction so if you hide inside a building they wont automatically run up to the door and try to open it but kinda just stand and stare at the wall waiting for you to come out
(not without a custom ai script at least which is more hassle then im willing to spend on it right now - mainly because i can't think of a simple solution to check if you're indoors other than putting a zone inside every building but that is just too tedious)

but for standard waypoint following it works ok
*you just kinda need to be a bit more careful about where you place the waypoints as if it doesnt update the collision in time they will think they can't get to the next point - i put 1 point either side of the door, which as you can see causes a stutter or might make them use another route but does work*

also you can also open and close the door using the 'e' key of course





p.s. i should say the script has a few bits that aren't really needed as i was testing switching the collision off for a short time to try get them to "see" it as a route to chase the player, it only slightly works in that regard - they will at least head in the general direction, which is why i left it in.
life\'s one big game

windows vista ultimate

i5 @3.3ghz, 4gb ram, geforce gtx460, directx 11

Attachments

Login to view attachments
3com
10
Years of Service
User Offline
Joined: 18th May 2014
Location: Catalonia
Posted: 8th Aug 2015 15:09
Nice one Smallg as usually!

If I remember correctly, you created a script getting the zombies follow the waypoint.
I modeled a horror house three floors, the house is so big and has so many rooms that you could play a full level, without having to leave the house.
Some zombies can get in and out of the rooms would be really cool.
Thanks a lot mate

3com
Laptop: Lenovo - Intel(R) Celeron(R) CPU 1005M @ 1.90GHz

OS: Windows 8.1 (64) - Ram: 4 gb - Hd: 283 gb - Video card: Intel(R) HD Graphics

PM
perelect
9
Years of Service
User Offline
Joined: 27th Mar 2015
Location: Australia
Posted: 9th Aug 2015 05:36
Nice work smallg
I may be old, but at least my memory still ....hmmm

DT:Intel(R) Core(TM) i7-4790 CPU @ 3.60GHz (8 CPUs), ~3.6GHz, Windows 8.1 64-bit, 16 GB Ram, NVIDIA GeForce GTX 750 Ti, Display Memory: 4018 MB. Resolution 1360x768, Passmark 3528, AutoCAD, 3DsMax, Paint.Net, Solidworks.
Timba
9
Years of Service
User Offline
Joined: 22nd Apr 2015
Location: Florida
Posted: 11th Aug 2015 21:07
nice!
ASUS MAXIMUS VII HERO | Intel Core i7 4790k | 16 GB RAM | EVGA GTX 980 SC | 120GB SSD(OS) | 512GB SSD(Programs) | 1TB WD Black(Backups) | EVGA SuperNova 1000W G1

Login to post a reply

Server time is: 2024-12-22 05:17:03
Your offset time is: 2024-12-22 05:17:03