Scripts / [SOLVED] Looking for a Smallg script, help please

Author
Message
PCS
7
Years of Service
User Offline
Joined: 7th Jul 2016
Playing:
Posted: 24th Apr 2020 19:05
HI all, i am looking for a thread were smallg explain how to put a custom script on a non animated entity to operate as a door. vertical up and down , and horizontal if i can remember correctly.
I cant find it.
any help would be nice.
Windows 7 Professional 64-bit
Intel(R) Pentium(R) CPU G3260 @ 3.30GHz (2 CPUs), ~3.3GHz RAM 16GB NVIDIA GeForce GT 730
DirectX Version: DirectX 11

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

Go to answer
bluemeenie195
5
Years of Service
User Offline
Joined: 28th Oct 2018
Location:
Posted: 24th Apr 2020 19:34
This might be it.

Directions-
you need to name it (in the GG editor) based on the direction you want it to move in GG -* this means you can use 1 script for all 4 directions *- (note it only works in north, east, south or west, no other directions or rotations will work i'm afraid as it's moving via global direction, i may change it later to local if i have time and it works ok)
(opening)
x1 = west - > east
x2 = right -> left
z1 = south -> north
z2 (or anything else) = north -> south
so you simply name it "x1" or "x2" etc
sliding_wall.lua
PM
bluemeenie195
5
Years of Service
User Offline
Joined: 28th Oct 2018
Location:
Posted: 24th Apr 2020 19:36
For some reason it won't let me upload the lua script, but its called the sliding_wall.lua
PM
smallg
Community Leader
18
Years of Service
User Offline
Joined: 8th Dec 2005
Location:
Posted: 24th Apr 2020 19:52
this one?
lua guide for GG
https://steamcommunity.com/sharedfiles/filedetails/?id=398177770
windows 10
i5 @4ghz, 8gb ram, AMD R9 200 series , directx 11
PCS
7
Years of Service
User Offline
Joined: 7th Jul 2016
Playing:
Posted: 24th Apr 2020 20:15
Yes smallg that's the one. only dif is i need it to move up and down, but i am busy winning.

Thanks a lot.
Windows 7 Professional 64-bit
Intel(R) Pentium(R) CPU G3260 @ 3.30GHz (2 CPUs), ~3.3GHz RAM 16GB NVIDIA GeForce GT 730
DirectX Version: DirectX 11
bluemeenie195
5
Years of Service
User Offline
Joined: 28th Oct 2018
Location:
Posted: 24th Apr 2020 20:18
That's a great one too smallg
PM
bluemeenie195
5
Years of Service
User Offline
Joined: 28th Oct 2018
Location:
Posted: 24th Apr 2020 20:22
The one I mentioned PCS goes side to side, but it wouldn't let me uploaded to you.

Maybe smallg still has that one kicking around.
PM
PCS
7
Years of Service
User Offline
Joined: 7th Jul 2016
Playing:
Posted: 24th Apr 2020 21:37 Edited at: 24th Apr 2020 21:41
Ok i have won half way.
I want to open and close a door, but my script give me an error.
this is my script it works for up but not for down.

This is the error i get when the door must go down.
Windows 7 Professional 64-bit
Intel(R) Pentium(R) CPU G3260 @ 3.30GHz (2 CPUs), ~3.3GHz RAM 16GB NVIDIA GeForce GT 730
DirectX Version: DirectX 11

Attachments

Login to view attachments
PCS
7
Years of Service
User Offline
Joined: 7th Jul 2016
Playing:
Posted: 24th Apr 2020 22:00
Ok just looked in global.lua ad there is no more MoveDown(e,v). function , why ?
Windows 7 Professional 64-bit
Intel(R) Pentium(R) CPU G3260 @ 3.30GHz (2 CPUs), ~3.3GHz RAM 16GB NVIDIA GeForce GT 730
DirectX Version: DirectX 11
AmenMoses
GameGuru Master
8
Years of Service
User Offline
Joined: 20th Feb 2016
Location: Portsmouth, England
Posted: 24th Apr 2020 22:17

There was never a MoveDown AFAIK, just replace with a MoveUp( e, -v )
Been there, done that, got all the T-Shirts!
PM
PCS
7
Years of Service
User Offline
Joined: 7th Jul 2016
Playing:
Posted: 24th Apr 2020 22:21 Edited at: 24th Apr 2020 22:25
I did test it with MoveUp( e, -v ), but it does not work.

When you type in the note pad++ and you start with a Capital letter M then it does open a drop down menu where there is a MoveDpwn function , so i assumed that there were supposed to be one in Global lua. My Bad.
Windows 7 Professional 64-bit
Intel(R) Pentium(R) CPU G3260 @ 3.30GHz (2 CPUs), ~3.3GHz RAM 16GB NVIDIA GeForce GT 730
DirectX Version: DirectX 11
smallg
Community Leader
18
Years of Service
User Offline
Joined: 8th Dec 2005
Location:
Posted: 25th Apr 2020 00:13
This post has been marked by the post author as the answer.
not tested but this should work
lua guide for GG
https://steamcommunity.com/sharedfiles/filedetails/?id=398177770
windows 10
i5 @4ghz, 8gb ram, AMD R9 200 series , directx 11
PCS
7
Years of Service
User Offline
Joined: 7th Jul 2016
Playing:
Posted: 25th Apr 2020 10:36
Thanks Smallg. it works 100%
Windows 7 Professional 64-bit
Intel(R) Pentium(R) CPU G3260 @ 3.30GHz (2 CPUs), ~3.3GHz RAM 16GB NVIDIA GeForce GT 730
DirectX Version: DirectX 11

Login to post a reply

Server time is: 2024-04-20 02:13:58
Your offset time is: 2024-04-20 02:13:58