Help with your scripting

How do we access the weapon editors items

How do we access the weapon editors items

Postby epsilonion » 16 Oct 2017, 00:40

How do we access the weapon editors elements in lua?

weapon name = weapon [name]
weapon maxAmmo = weapon [maxammo]
weapon muzzle particle = weapon [muzzle]
etc
etc

as we all know I like to code and not to use the visual editor but accessing the weapon editors attributes in code is something that I am interested in.
User avatar
epsilonion
Skyline Lead Moderator
Skyline Lead Moderator
 
Posts: 874
Joined: 26 Feb 2015, 11:51
Location: Hull, East Yorkshire, England
Skill: Business Manager
Skill: Great creative

Re: How do we access the weapon editors items

Postby StarFire » 16 Oct 2017, 14:56

Hmm need to add some of these for the editor. What I did find:

maxAmmo = fpsSystem.getMaxAmmo(string wKey);
maxClips = fpsSystem.getMaxClips(string wKey);

Added to my List ;)
Dream the Journey, Live the Experience!
User avatar
StarFire
Skyline Founder
Skyline Founder
 
Posts: 1678
Joined: 03 Jan 2012, 18:50
Location: UK
Skill: Great creative
Skill: Programmer
Skill: 3D Modeller
Skill: 2D Artist
Skill: Level Designer


Return to Lua Scripting

Who is online

Users browsing this forum: No registered users and 3 guests

cron