Category | Scripting |
Created | 02.02.2016 17:51 |
Fabio Celsa (fcelsa) | 02.02.2016 17:56 |
---|---|
Hi, there is a way to create a new fillablePallet near to player, via Lua script? I have studied fillablepallet.lua but I did not understand if trigger is mandatory. Thanks in advance. |
Emil Drefers (Unknown) | 03.02.2016 08:21 |
---|---|
Hi, not by default, you would have to create a new console command. The trigger is not mandatory ... but that also depends on what you want to do with the pallet. Cheers, Emil |
Fabio Celsa (fcelsa) | 03.02.2016 10:16 |
---|---|
Hi, this is a good news, my idea is to spawn a pallet like a wool pallet that will appear after a specific condition by cutting the trees with a chainsaw. is there any script that I can study for my experiments? can you give me a track, a piece of code to work on? Thanks in advance, Fabio |
Emil Drefers (Unknown) | 04.02.2016 07:48 |
---|---|
Hi, sure. here is the source code for a lot of scripts: http://ls-mods.de/scriptDocumentation.php So, in the Vehicle.lua you'll find information on how to add a console command: http://ls-mods.de/scriptDocumentation.php?lua_file=vehicles/Vehicle (at the very bottom) With that you can test your procedures for loading a pallet. If you need more information please let me know. Cheers, Emil |
Note: Log in to post. Create a new account here.