Data Realms Fan Forums
http://45.55.195.193/

Coalition guy spawns wit dummy weapons, how to fix?
http://45.55.195.193/viewtopic.php?f=73&t=25226
Page 1 of 1

Author:  Gotcha! [ Thu Aug 18, 2011 5:43 pm ]
Post subject:  Coalition guy spawns wit dummy weapons, how to fix?

Hello,

A simple question, but I am even more simple so I can't figure it out.

This line (taken from an activity lua file) contains coalition weapons:
Code:
   self.WList = { "Grenade Launcher", "Sniper Rifle", "Heavy Sniper Rifle", "Gatling Gun", "Flamer", "Napalm Flamer", "Spike Launcher", "Flak Cannon", "Auto Pistol", "Shotgun", "Auto Shotgun", "Mauler Shotgun", "Rocket Launcher" }


But since dummies also have a Grenade Launcher, Sniper Rifle etc. the Coalition get spawned with those.
How would I tell the lua file to pick the guns from Coalition.rte at all times?

Author:  Abdul Alhazred [ Thu Aug 18, 2011 6:40 pm ]
Post subject:  Re: Coalition guy spawns wit dummy weapons, how to fix?

Replace "WeaponName" with "Coalition.rte/WeaponName".

Author:  findude [ Thu Aug 18, 2011 7:01 pm ]
Post subject:  Re: Coalition guy spawns wit dummy weapons, how to fix?

Do the create functions still have the second parameter for a module?

Author:  Gotcha! [ Thu Aug 18, 2011 7:05 pm ]
Post subject:  Re: Coalition guy spawns wit dummy weapons, how to fix?

Gawd, I really should have figured this one out myself. >_<

Thanks, I will build you a statue someday. :grin:

Author:  Aspect [ Fri Aug 26, 2011 7:52 pm ]
Post subject:  Re: Coalition guy spawns wit dummy weapons, how to fix?

findude wrote:
Do the create functions still have the second parameter for a module?


yes, example:

actor:AddInventoryItem(CreateHDFirearm("Heavy Pistol","Coalition.rte"));

Page 1 of 1 All times are UTC [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/