Scripts / Opening pre-made entity doors [question]

Author
Message
scythe_reaver
13
Years of Service
User Offline
Joined: 14th Nov 2011
Location:
Posted: 8th Feb 2017 03:58
Is it possible to use pre-made entities, such as like Grunge Building (2), that have doors already placed, and make those doors usable/openable? or... to give the effect of going inside of a pre-made entity would i have to do like a 'new level' function of some kind and just spawn the player inside a room/building i make personally? any tips/help is much appreciated. i'm new to Game Guru.
http://www.shrinkpictures.com/processed/phprZ6E7O_c2AM.jpg

\"I AM YOUR GOD OF DEATH\"
PM
smallg
Community Leader
19
Years of Service
User Offline
Joined: 8th Dec 2005
Location:
Posted: 8th Feb 2017 10:17
No. They need an animation to move.

You can port the player around with lua though so you could technically show a fake door opening and then move the player to an inside area (doesn't have to be a new map for faster loading) - think classic Resident Evil.
lua guide for GG
https://steamcommunity.com/sharedfiles/filedetails/?id=398177770
windows 10
i5 @4ghz, 8gb ram, AMD R9 200 series , directx 11
scythe_reaver
13
Years of Service
User Offline
Joined: 14th Nov 2011
Location:
Posted: 9th Feb 2017 04:50
Ok, thanks for the tips. now, i've never really done LUA coding. i have done some coding in say DarkBasic/DarkBasicPro. how difficult of a task would it be to put a "trigger zone" or something in front of the door, maybe trigger a fake animation to play, and then teleport them inside a building as you suggested?
http://www.shrinkpictures.com/processed/phprZ6E7O_c2AM.jpg

\"I AM YOUR GOD OF DEATH\"
PM
AceRimmer
Reviewed GameGuru on Steam
9
Years of Service
User Offline
Joined: 28th Feb 2015
Playing: classic British heavy metal mostly
Posted: 12th Feb 2017 18:47
This does what you want.
I used a $1 script from the store https://www.tgcstore.net/product/24301 because I am still trying/struggling to learn Lua as well.

Good thing about this script is that once you have it you can see how it works and adapt it a lot.
If you transport the player a distance away make sure you set it to always active or you don't arrive at your destination, just stay in a black limbo lol.

description in store: "Inspired by Resident Evil. Instead of opening a door, the player walks up to the door and presses the "E" key. A fade transition occurs and the player is transported to the other side of the door (See Video). This script also works with a door that requires a key"
its like deja-vu, but all over again, again

Login to post a reply

Server time is: 2024-12-23 03:14:04
Your offset time is: 2024-12-23 03:14:04