Data Realms Fan Forums
http://45.55.195.193/

Attachables
http://45.55.195.193/viewtopic.php?f=1&t=13608
Page 1 of 1

Author:  Coops150 [ Wed Jan 28, 2009 5:17 am ]
Post subject:  Attachables

ok so i've got an Attachable... how do i attach it to my Weapon? I'm Guessing some kind of line like

Code:
 AddEffect = Attachable
        CopyOf = ...


in the coding under the HDFirearm

Author:  Coops150 [ Wed Jan 28, 2009 5:18 am ]
Post subject:  Re: Attachables

whoops... can someone move this to Mod Making please?

EDIT: thank you

Author:  whitty [ Wed Jan 28, 2009 6:06 am ]
Post subject:  Re: Attachables

This is a line from one of my codes:
Code:
   AddAttachable = Attachable
      CopyOf = Tek Mech Heavy Chest Plate
      ParentOffset = Vector
         X = 3
         Y = -2


Be sure to define the attachable first... But that's obvious.

Author:  Coops150 [ Wed Jan 28, 2009 6:22 am ]
Post subject:  Re: Attachables

PERFECT, thank you...

Author:  Solace [ Wed Jan 28, 2009 7:31 pm ]
Post subject:  Re: Attachables

Hm, I have a question and I don't really think it needs it's own thread... can you attach emitters to explosives, to make an air-detonation rocket?

Author:  grenade [ Wed Jan 28, 2009 8:49 pm ]
Post subject:  Re: Attachables

Well there is an attached emitter on my photon grenade in Tau mod .

Author:  Coops150 [ Wed Jan 28, 2009 11:51 pm ]
Post subject:  Re: Attachables

Solace wrote:
Hm, I have a question and I don't really think it needs it's own thread... can you attach emitters to explosives, to make an air-detonation rocket?

based on my 2 day knowledge on this, i'm pretty sure you can

Author:  Coops150 [ Thu Jan 29, 2009 12:16 am ]
Post subject:  Re: Attachables

Another question... can an Attachable be an AEmitter?

i've tried

Code:
AddAttachable = AEmitter
         CopyOf = ...


But it doesn't seem to work

Author:  Duh102 [ Thu Jan 29, 2009 12:59 am ]
Post subject:  Re: Attachables

You have to use AddEmitter instead of AddAttachable for emitters.

Author:  Coops150 [ Thu Jan 29, 2009 4:29 am ]
Post subject:  Re: Attachables

Duh102 wrote:
You have to use AddEmitter instead of AddAttachable for emitters.


Nope Doesn't work... well maybe someone can take a gander at it for me and see if they can fix it.

Attachment:
Rifle.ini.zip


it's the laser Pointer Target Emitter/Particle that seems to be the problem...

Attachment:
Chinese_AK-47.png

Author:  whitty [ Thu Jan 29, 2009 4:47 am ]
Post subject:  Re: Attachables

Coops150 wrote:
Another question... can an Attachable be an AEmitter?

i've tried

Code:
AddAttachable = AEmitter
         CopyOf = ...


But it doesn't seem to work



Here's a snip of my code from my flamethrower... You can attach emitters to pretty much anything.

Code:
   AddEmitter = AEmitter
      CopyOf = Flame Spark
      ParentOffset = Vector
         X = 12
         Y = 2

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