Flashlight+Gun - Printable Version +- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum) +-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html) +--- Forum: Custom Stories, TCs & Mods - Development (https://www.frictionalgames.com/forum/forum-38.html) +---- Forum: Development Resources (https://www.frictionalgames.com/forum/forum-42.html) +---- Thread: Flashlight+Gun (/thread-27720.html) Pages:
1
2
|
Flashlight+Gun - Daemian - 12-15-2014 Here it is. The flashlight gun, code, and everything you need to know to use it. Download: AmnFlashlightPistol.zip Gun_Addon_For_Amnesia_Mods.PDF How to use it:
RE: Flashlight+Gun - Mudbill - 12-15-2014 PHP Code: GiveItemFromFile("lantern", "lantern.ent"); This line I'm pretty sure will keep giving you the item over and over if ran multiple times. Might be good to add a simple PHP Code: if(!HasItem("lantern")) GiveItemFromFile("lantern", "lantern.ent"); to make sure it doesn't. Anyhow, good job mate. By the way, have you experimented with running this in the global.hps? RE: Flashlight+Gun - RedKnight - 12-15-2014 Holy shenanigens.... I want that mothabucking gun right now... RE: Flashlight+Gun - Daemian - 12-15-2014 Mudbill Wrote:Totally. But in my example that function only runs once. I expect the modders to tweak the code to their needs. But whatever, if you think it helps, I'll add it. Mudbill Wrote:Anyhow, good job mate. By the way, have you experimented with running this in the global.hps?Nope. I had a problem with it once and I stopped using it. I guess I could try again later. You think it could work? RE: Flashlight+Gun - Mudbill - 12-15-2014 Honestly, I don't know. I haven't used it much myself. I was just mentioning it because it sounds like something that would be more convenient than having the same code in all levels. I think it is possible, but it would have to be rewritten a bit. RE: Flashlight+Gun - L00T3R123 - 12-21-2014 can you do tutorial how to put the gun in your mod cause i did all the steps but it turned out wrong D: RE: Flashlight+Gun - Daemian - 12-24-2014 (12-21-2014, 07:56 AM)L00T3R123 Wrote: can you do tutorial how to put the gun in your mod cause i did all the steps but it turned out wrong D:There is a tutorial, in what part are you having trouble with? Post your error so we can help you. RE: Flashlight+Gun - L00T3R123 - 12-25-2014 when i press f it gets out a lantern instead of the gun RE: Flashlight+Gun - Daemian - 12-25-2014 You need a full conversion mod to replace the lantern. http://www.frictionalgames.com/forum/thread-11120.html https://wiki.frictionalgames.com/hpl2/amnesia/full_conv RE: Flashlight+Gun - L00T3R123 - 12-26-2014 ohhh :0 |