Scripts / Open doors that are not animated

Author
Message
cryptweaver
8
Years of Service
User Offline
Joined: 22nd Dec 2015
Playing:
Posted: 23rd Jul 2016 23:56
Hello all. I was wondering if there was away to be able to open doors that are not animated? I have used the door lua on a none animated door and the door just kinda shakes lol. Thank you
Wishing you all the best.
smallg
Community Leader
18
Years of Service
User Offline
Joined: 8th Dec 2005
Location:
Posted: 24th Jul 2016 09:23
To rotate it? Yes, there was a twitch ages ago that did the same thing but would actually be a lot more simple now we can actually return the entity's angle values.
lua guide for GG
https://steamcommunity.com/sharedfiles/filedetails/?id=398177770
windows 10
i5 @4ghz, 8gb ram, AMD R9 200 series , directx 11
GoDevils
9
Years of Service
User Offline
Joined: 24th Sep 2014
Location: Arizona USA
Posted: 25th Jul 2016 21:28
Lets say you have a wall with a door in it (a single entity). If the wall/door does not have an animation attached, it cannot be opened. However, if you have a model of a wall with a door opening, then you can insert a door (as a separate entity), and a LUA script (attached to the door entity) can rotate the door so it opens and closes.
"THERE IS NO SPOON"

AMD 6300 6 core 3.5 ghz, Windows 8.1, 8GB ram, GTX 650 2GB ram
cryptweaver
8
Years of Service
User Offline
Joined: 22nd Dec 2015
Playing:
Posted: 26th Jul 2016 20:54
Thanks much guys. I appreciate it.
Wishing you all the best.

Login to post a reply

Server time is: 2024-05-03 21:03:31
Your offset time is: 2024-05-03 21:03:31