Scripts / Combine the pieces.

Author
Message
Ceri
4
Years of Service
User Offline
Joined: 18th Sep 2019
Location: Turkey/Ankara
Posted: 26th Oct 2019 20:02
I think there's an electric generator in the game. And the player will find the parts and then take them to the generator for the generator to start. i will be very pleased if you help.
PM
3com
9
Years of Service
User Offline
Joined: 18th May 2014
Location: Catalonia
Posted: 26th Oct 2019 20:34
As start point.

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

OS: Windows 10 (64) - Ram: 4 gb - Hd: 283 gb - Video card: Intel(R) HD Graphics
cpu mark: 10396.6
2d graphics mark: 947.9
3d graphics mark: 8310.9
memory mark 2584.8
Disk mark: 1146.3
Passmark rating: 3662.4

PM
Ceri
4
Years of Service
User Offline
Joined: 18th Sep 2019
Location: Turkey/Ankara
Posted: 28th Oct 2019 08:35
@3com thanks for your script.But the piece has to be connected to a generator.The player must find the necessary parts and then connect them to the engine to start the engine. i could not this. I guess i should one more script for the generator(or engine etc.)
PM
3com
9
Years of Service
User Offline
Joined: 18th May 2014
Location: Catalonia
Posted: 28th Oct 2019 09:32
Quote: " player must find the necessary parts "

How many parts we are talking about?
Should the player connect the pieces when he finds them all, or must he connect one by one?
Laptop: Lenovo - Intel(R) Celeron(R) CPU 1005M @ 1.90GHz

OS: Windows 10 (64) - Ram: 4 gb - Hd: 283 gb - Video card: Intel(R) HD Graphics
cpu mark: 10396.6
2d graphics mark: 947.9
3d graphics mark: 8310.9
memory mark 2584.8
Disk mark: 1146.3
Passmark rating: 3662.4

PM
3com
9
Years of Service
User Offline
Joined: 18th May 2014
Location: Catalonia
Posted: 28th Oct 2019 11:22


This is a basic script to get what you want.
Another thing is to get a 3d sound or lower / increase the volume when the player approaches the generator or moves away from it, etc; But this is another different matter.

attach script below to every part. (Remember they should be dynamics



And this other to the generator




Note: this code is a easiest version, so you can understand how it works (the concept), also you can try to modify it to fit new goals, etc.
hth
Laptop: Lenovo - Intel(R) Celeron(R) CPU 1005M @ 1.90GHz

OS: Windows 10 (64) - Ram: 4 gb - Hd: 283 gb - Video card: Intel(R) HD Graphics
cpu mark: 10396.6
2d graphics mark: 947.9
3d graphics mark: 8310.9
memory mark 2584.8
Disk mark: 1146.3
Passmark rating: 3662.4

PM

Login to post a reply

Server time is: 2024-03-28 21:42:11
Your offset time is: 2024-03-28 21:42:11