Scripts / HOW TO USE ''+CODE SNIPPET'' ?

Author
Message
SuntRoman
8
Years of Service
User Offline
Joined: 11th Jul 2015
Location:
Posted: 11th Jul 2015 19:34
How to use the ''+code snippets?'' . i see here a lot for dialogs with npc etc, all solutions in ''+code snippet'' wich are scripts, but how can i use them in game guru ? what to do with that script ?
PM
3com
9
Years of Service
User Offline
Joined: 18th May 2014
Location: Catalonia
Posted: 11th Jul 2015 20:01
For example, if you've animate door open with a key, so you place door and key on map, click over the door>properties, there go to "Main" mouse click and search there for "door.lua" script. Click OK.
Then you are done. Test your game, collect key, open the door.
Sames in all cases, just attach your script to entity, via poperties panel>Main

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
SuntRoman
8
Years of Service
User Offline
Joined: 11th Jul 2015
Location:
Posted: 11th Jul 2015 20:43
No, i know this. But i mean , how to transform that code snnipet in a script , to can use it in game guru
PM
3com
9
Years of Service
User Offline
Joined: 18th May 2014
Location: Catalonia
Posted: 11th Jul 2015 20:56
Sorry, do not what the "+code snippets?" are you referring to. Perhaps another one can hep you about that.

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
!nullptr
Forum Support
9
Years of Service
User Offline
Joined: 27th Mar 2015
Location: Australia
Posted: 11th Jul 2015 21:53 Edited at: 11th Jul 2015 21:54
You need to create a lua file, put it in the scriptbank folder of Game Guru and C&P the script to the new file. Attach to entity and run.

Might be worth having a read of this first.

https://forum.game-guru.com/thread/208970
AKA SisterMatic (Steam)
Development/ Gaming Rigs
Sys 1: i7-4770 (3.5)/16Gb/128 SSD/3Tb/970gtx/2 x 23, 1 x 27 LCD - Sys 2: i7/8Gb/670gtx/1.5Tb/1 x 23 LCD - Sys 3: Amd Quad/8Gb/645gtx/1Tb/30" LCD
PM

Login to post a reply

Server time is: 2024-05-08 12:56:52
Your offset time is: 2024-05-08 12:56:52