UGX-Mods Login

or login with an authentication provider below
Sign In with Google
Sign In with Twitter
Sign In with Discord
Sign In with Steam
Sign In with Facebook
Sign In with Twitch

Script error when making a trigger_use for a wall weapon.

broken avatar :(
Created 8 years ago
by xZekaHD
0 Members and 1 Guest are viewing this topic.
2,133 views
broken avatar :(
×
broken avatar :(
Location: gbLeeds
Date Registered: 24 February 2014
Last active: 10 months ago
Posts
30
Respect
Forum Rank
Legless Crawler
Primary Group
Donator ♥
My Groups
More
My Contact & Social Links
More
Personal Quote
Global on CSGO, Silver at Map Making.
Signature
ZM_SCHOOL PROGRESS = 10%  :gusta:

Last Updated - 21 October 2016
×
xZekaHD's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
xZekaHD's Contact & Social Linkscrawmax1azerukNatrah
I get
"Script Runtime Error"
"cannon cast undefined to string"
"Check console for details"

Whenever I try to make a wallbuy trigger_use for my scavenger gun

Here it it in radiant: https://gyazo.com/82af3cd214c3e279739dca516441008a
broken avatar :(
×
broken avatar :(
Location: gbMilton Keynes
Date Registered: 17 January 2014
Last active: 4 years ago
Posts
6,877
Respect
1,004Add +1
Forum Rank
Immortal
Primary Group
Community Scripter
My Groups
More
My Contact & Social Links
More
Signature
If you want scripts / features made for you, then contact me by PM or email / skype etc
it will cost you tho so if you have no intention of reciprocating don't even waste my time ;)
×
Harry Bo21's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Community Scripter Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community.
Harry Bo21's Contact & Social Links[email protected]HarryBo21HarryBo000
You either mistyped a kvp or haven't included the weapon in the scripts thus it returns "undefined" - instead of its name
broken avatar :(
×
broken avatar :(
Location: gbLeeds
Date Registered: 24 February 2014
Last active: 10 months ago
Posts
30
Respect
Forum Rank
Legless Crawler
Primary Group
Donator ♥
My Groups
More
My Contact & Social Links
More
Personal Quote
Global on CSGO, Silver at Map Making.
×
xZekaHD's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
xZekaHD's Contact & Social Linkscrawmax1azerukNatrah
You either mistyped a kvp or haven't included the weapon in the scripts thus it returns "undefined" - instead of its name

These are in my scripts:

_zombiemode_weapons.gsc
add_zombie_weapon( "scavenger",                      &"ZOMBIE_WEAPON_SCAVENGER_200",          200,   "",            0 );

dlc3_code.gsc
include_weapon( "scavenger" );

mod.csv
// Scavenger
weapon,sp/scavenger
sound,scavenger,,all_sp
broken avatar :(
×
broken avatar :(
Location: gbMilton Keynes
Date Registered: 17 January 2014
Last active: 4 years ago
Posts
6,877
Respect
1,004Add +1
Forum Rank
Immortal
Primary Group
Community Scripter
My Groups
More
My Contact & Social Links
More
×
Harry Bo21's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Community Scripter Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community.
Harry Bo21's Contact & Social Links[email protected]HarryBo21HarryBo000
Then you've mistyped your kvps
broken avatar :(
×
broken avatar :(
Location: it
Date Registered: 5 September 2014
Last active: 3 years ago
Posts
282
Respect
Forum Rank
Mr. Elemental
Primary Group
Member
My Contact & Social Links
More
Personal Quote
I belive purple is getting me...
×
IperBreach86's Groups
IperBreach86's Contact & Social LinksIperBreach86
If memory serves correctly, dont you need to put a zombie_cost | {weapon_cost} in order to have it working?
Thats maybe why it gives and error.
broken avatar :(
×
broken avatar :(
Location: gbLeeds
Date Registered: 24 February 2014
Last active: 10 months ago
Posts
30
Respect
Forum Rank
Legless Crawler
Primary Group
Donator ♥
My Groups
More
My Contact & Social Links
More
Personal Quote
Global on CSGO, Silver at Map Making.
×
xZekaHD's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
xZekaHD's Contact & Social Linkscrawmax1azerukNatrah
Then you've mistyped your kvps

Well I got it working but in game it says "ZOMBIE_COST_SCAVENGER_750"

How do I make it so it says like "Press [Use] for Scavenger"

 
Loading ...