Scripts / REQUEST "nvweapon.lua" script

Author
Message
Old Larry
GameGuru TGC Backer
12
Years of Service
User Offline
Joined: 26th Apr 2012
Location: Bucharest, Romania
Posted: 10th Dec 2014 13:31 Edited at: 10th Dec 2014 13:33
Hello dear friends

Need help to combine two scripts in one "nvweapon.lua":

"weapon.lua" with this "fpinv.lua"



I've try to use the command

"Include ("fpinv.lua") - Use within the init function to ensure the script is pre loaded"

OR the

"SwitchScript ( e,"fpinv" ) - Switch AI to use a different script"

on the "weapon.lua" but not work...

Maybe the script "fpinv.lua" is not correct ?

Any help will be appreciate, thanks in advance

Smile today, tomorrow could be worse

http://bestradiolarry.ro/fpsarea

"The best forum, game software, operating system or web platform, it's that software which can give you most of the options and speed, not just amazing graphics."
Old Larry
GameGuru TGC Backer
12
Years of Service
User Offline
Joined: 26th Apr 2012
Location: Bucharest, Romania
Posted: 10th Dec 2014 18:25 Edited at: 10th Dec 2014 18:38
Problem update:

I found in my computer the "LuaEdit" program, an I make (with this program) one script file named "sweapon" ...



No error after I check syntax and Debugging in the LuaEdit.

But in test game pop up this error "error running function: scriptbank\sweapon.lua:51: attemp to concatenate field '?' (a nill value)"

Any idea why ?!?

Smile today, tomorrow could be worse

http://bestradiolarry.ro/fpsarea

"The best forum, game software, operating system or web platform, it's that software which can give you most of the options and speed, not just amazing graphics."
smallg
Community Leader
18
Years of Service
User Offline
Joined: 8th Dec 2005
Location:
Posted: 10th Dec 2014 19:45 Edited at: 10th Dec 2014 19:46
Quote: "Prompt ("Press E To pick up the " .. weapon_name[e])"




we dont have access to the 'name' properties yet afaik, only works for the default weapon script - basically change the 2 prompts to "Press E to pick up" and it'll work



also i dont think any of the following will work unless u have some custom functions somewhere



life's one big game

windows vista ultimate

i5 @3.3ghz, 4gb ram, geforce gtx460, directx 11
Old Larry
GameGuru TGC Backer
12
Years of Service
User Offline
Joined: 26th Apr 2012
Location: Bucharest, Romania
Posted: 10th Dec 2014 20:09 Edited at: 10th Dec 2014 21:13
smallg wrote: "basically change the 2 prompts to "Press E to pick up" and it'll work"


You are right smallg -work, but indeed, for "zoom" part of script need some custom function to run...

Full thanks for your help

Smile today, tomorrow could be worse

http://bestradiolarry.ro/fpsarea

"The best forum, game software, operating system or web platform, it's that software which can give you most of the options and speed, not just amazing graphics."

Login to post a reply

Server time is: 2024-05-02 02:17:43
Your offset time is: 2024-05-02 02:17:43