Data Realms Fan Forums http://45.55.195.193/ |
|
How do I give an actor a gun that is not in its .rte? http://45.55.195.193/viewtopic.php?f=1&t=21398 |
Page 1 of 1 |
Author: | David Rodrigov [ Sat Feb 05, 2011 6:37 am ] |
Post subject: | How do I give an actor a gun that is not in its .rte? |
I want to pre-equip a Browncoat actor with some guns that are not in its .rte. How do I do so? |
Author: | Asklar [ Sat Feb 05, 2011 7:04 am ] |
Post subject: | Re: How do I give an actor a gun that is not in its .rte? |
Depends on the .rte folder I guess. For example, I made an actor and I pre-equipped it with blaster pistols from the base.rte. But if I try to equip a Browncoat (for example) with a gun from an .rte that is not loaded yet I'll probably get the "Instance not defined error! Referring to CopyOf that is not defined" Because as the Browncoats is one of the first folders to load into the game, I don't think it can be easy. Unless you equip it with weapons from the base.rte. |
Author: | 411570N3 [ Sat Feb 05, 2011 10:01 am ] |
Post subject: | Re: How do I give an actor a gun that is not in its .rte? |
In the module that loads second's code: AddActor = AHuman <Tab>CopyOf = <Module the actor is from>.rte/<Name of the actor> <Tab>PresetName = <Something> <Tab>AddInventory = HDFirearm <Tab><Tab>CopyOf = <Module the gun is from>.rte/<Name of the gun> |
Author: | Dylanhutch [ Sat Feb 05, 2011 11:16 am ] |
Post subject: | Re: How do I give an actor a gun that is not in its .rte? |
411570N3 wrote: In the module that loads second's code: AddActor = AHuman <Tab>CopyOf = <Module the actor is from>.rte/<Name of the actor> <Tab>PresetName = <Something> <Tab>AddInventory = HDFirearm <Tab><Tab>CopyOf = <Module the gun is from>.rte/<Name of the gun> It would actually be: <Tab><Tab>CopyOf = <Module it's from> like <Tab><Tab>CopyOf = Base/Pistol Wait a sec. Why the hell do I know that?.. |
Author: | 411570N3 [ Sat Feb 05, 2011 11:19 am ] |
Post subject: | Re: How do I give an actor a gun that is not in its .rte? |
They are both valid, but this way it's clear to people trying to edit the mod. |
Author: | Dylanhutch [ Sat Feb 05, 2011 11:28 am ] |
Post subject: | Re: How do I give an actor a gun that is not in its .rte? |
411570N3 wrote: They are both valid, but this way it's clear to people trying to edit the mod. Good point. |
Page 1 of 1 | All times are UTC [ DST ] |
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |