How do I attach an effect "on a stick" [Solved]

In this forum you will find and post information regarding the modding of Star Wars Battlefront 2. DO NOT POST MOD IDEAS/REQUESTS.

Moderator: Moderators

Post Reply
User avatar
Lorul1
Rebel Colonel
Rebel Colonel
Posts: 562
Joined: Wed Apr 24, 2013 10:34 pm
Projects :: Assault on Theed
Games I'm Playing :: Battlegrounds
xbox live or psn: No gamertag set
Location: Your House

How do I attach an effect "on a stick" [Solved]

Post by Lorul1 »

(okay before I begin with my question I'll admit that my topic title was kinda lame BUT its pretty self explanatory. :roll: )

we all know and love the fire effect from mygeeto. Its a little box with the fire effect attached to it. When everyone on gametoast downloads my map :wink: , you'll see it plays a big part in it.

The (working) lua for the myg1_bldg_fire_effect is below
Hidden/Spoiler:
[GameObjectClass]
ClassLabel = "prop"
GeometryName = "myg1_bldg_fire_effect.msh"


[Properties]
GeometryName = "myg1_bldg_fire_effect"

FoleyFXGroup = "metal_foley"

AttachEffect = "myg_sfx_fire""
AttachToHardPoint = "hp_fire_01"
BUT I had an idea one day. Instead of the fire effect attached to the little block, how about the electric effect or the explosion effect on Geonosis.

after reading this post here I then decided to make a new ODF file and call it myg1_bldg_exp_effect. It was the same as the fire effect but I changed the effect in the "AttachEffect" line to the back of a Jedi star fighter.

for some reason it doesn't work here the odf for the myg1_bldg_exp_effect
Hidden/Spoiler:
[GameObjectClass]
ClassLabel = "armedbuilding"
GeometryName = "myg1_bldg_fire_effect.msh"


[Properties]
GeometryName = "myg1_bldg_fire_effect"

AttachEffect = "com_sfx_exhaust_jedistarfighter_blue"
AttachToHardPoint = "hp_fire_01"
So can anyone figure out why it does'nt work

--------------------------------------------------------------------------------------------------------------
EDIT:

I figured it out here's the NEW odf for electric effect on a stick
Hidden/Spoiler:
[GameObjectClass]
ClassLabel = "prop"
GeometryName = "myg1_bldg_fire_effect.msh"


[Properties]
GeometryName = "myg1_bldg_fire_effect"

AttachEffect = "spa_sfx_lightningballs"
AttachToHardPoint = "DummyRoot"


AttachDynamic = "1"
it even animates with zero editors animation AND you can change the effect to whatever you want by replacing the "spa_sfx_lightningballs" part of this odf with the name of any of the effects in your maps effects folder.
(BF2_ModTools > Data_*** > Worlds > *** > Effects)
If you don't have an Effects folder make one at the directory above then take effects from other worlds through your assets and paste them in your new Effects folder. (if your taking this odf and putting it in your odf folder you'll need some msh's in your msh folder for it to work. those msh's are stated in the odf.)
:amidala: have fun moding
Post Reply