Scripts / How to didnt carre over weapons

Author
Message
MrDiaksikPl
8
Years of Service
User Offline
Joined: 13th Aug 2015
Location:
Posted: 22nd Jul 2016 10:43
How to didnt carreover my collected weapons to the next level ? For example i take 3 guns in first level and if i jump to seccond level i dont want to have this 3 guns which i was collect in the first level. Sorry for my english.
PM
Nathan38
13
Years of Service
User Offline
Joined: 13th Feb 2011
Location:
Posted: 22nd Jul 2016 12:00 Edited at: 22nd Jul 2016 12:02
Hi MrDiaksikPl

Here's a little script for you, simply apply it to a trigger zone and place that zone over the player start marker in your next level
save it in a new document called remove_weapons.lua



Please let me know if it works
synchromesh
Forum Support
10
Years of Service
User Offline
Joined: 24th Jan 2014
Location:
Posted: 22nd Jul 2016 12:10
Awesome thanks Nathan38
I pointed him here and you guys never let me down ..... Plus the fact I could do with this one myself
The only person ever to get all his work done by "Friday" was Robinson Crusoe..
PM
Nathan38
13
Years of Service
User Offline
Joined: 13th Feb 2011
Location:
Posted: 22nd Jul 2016 12:12
No problem synchromesh, I just hope it actually works
synchromesh
Forum Support
10
Years of Service
User Offline
Joined: 24th Jan 2014
Location:
Posted: 22nd Jul 2016 13:56
It works however great thanks ... I did have to add another "End" to the script or it or I got an error

The only person ever to get all his work done by "Friday" was Robinson Crusoe..
PM
Nathan38
13
Years of Service
User Offline
Joined: 13th Feb 2011
Location:
Posted: 22nd Jul 2016 14:01
Doh! Amateur mistake, forgot to end the _main
MrDiaksikPl
8
Years of Service
User Offline
Joined: 13th Aug 2015
Location:
Posted: 22nd Jul 2016 14:02
I have problem with this script, when i save my levels as standalone game and when i jump to level where this trigerzone was placed i have this error: "scriptbank\remove_weapons.lua3:attempt to index field '?' (a nil value)" How can i fix this problem ?
PM
Pirate Myke
Forum Support
13
Years of Service
User Offline
Joined: 31st May 2010
Location: El Dorado, California
Posted: 22nd Jul 2016 14:58
Can you post your version of the script please?

Thanks
Intel(R) Core(TM)2 Quad CPU Q6600 @ 2.40GHz, 2400 Mhz, 4 Core(s), 4 Logical Processor(s), 8gb RAM, Nvidia gtx660, Windows 7 Pro 64bit, Screen resolution 1680 x 1050.

3com
9
Years of Service
User Offline
Joined: 18th May 2014
Location: Catalonia
Posted: 22nd Jul 2016 19:52
If you has not changed the function name, and you are using script "as is", but you are getting the error, so try this one:



hth

3com
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

PM

Login to post a reply

Server time is: 2024-05-04 02:19:21
Your offset time is: 2024-05-04 02:19:21