Im testing how to get effects ingame to improve surroundings and ran into a problem, its not showing up.
LUA (the part that pertains to this)
Hidden/Spoiler:
--
-- Copyright (c) 2005 Pandemic Studios, LLC. All rights reserved.
--
-- Mos Eisley Hero Deathmatch (uses Space Assault rules)
-- First team to reach 100 kills wins
--
FecLoc = GetPathPoint("fire_test", "node 0")
AttachEffectToMatrix(CreateEffect("com_sfx_explosion_xl"), FecLoc)
end
---------------------------------------------------------------------------
-- ScriptInit
---------------------------------------------------------------------------
function ScriptInit()
my path and node_0
Hidden/Spoiler:
the effect should be in the C:\BF2_ModTools\data_TES\Common\effects folder right? and what I have in my LUA is fine right, wont it just play over and over again, or will it just play once, or not at all, and need an event to play it?
Re: Effect not showing up.
Posted: Wed Sep 30, 2009 9:33 pm
by Fiodis
If the effect is finite, it will only play once.
You must load the effect somehow, rather than just calling for it in the lua. The easiest way is to attach it to an object and to place this object somewhere out-of-site on the map.
Re: Effect not showing up.
Posted: Wed Sep 30, 2009 11:04 pm
by myers73
Ok, so my idea is to make a map that has a big emphasis on environment, so I want a lot of burning objects, and stuff like that. I read the FAQ about attaching effects to objects without hardpoints, and, well you see my result. So I place an object out of sight on the map, and via odf attach effect to a hp on it. Now how do I, via LUA get the effect to play over and over i.e. loop, at the path node I placed?
Re: Effect not showing up.
Posted: Thu Oct 01, 2009 9:29 am
by FragMe!
myers73 wrote:the effect should be in the C:\BF2_ModTools\data_TES\Common\effects folder right?
If you are using a shipped effect that normally found in the common folder then yes, if it is a new one you created or have pulled from a sides folder then you are probably better off making an effects folder in your world folder and placing it there.
Re: Effect not showing up.
Posted: Thu Oct 01, 2009 4:43 pm
by Fiodis
myers73 wrote:Now how do I, via LUA get the effect to play over and over i.e. loop, at the path node I placed?
I don't think you can, but you can have an infinitely repeating effect set up in PE. This works well for torches and bonfires, but not explosions.
If you want explosions on the ground without any ordance, look into Geonosis' .fx file.
Re: Effect not showing up.
Posted: Thu Oct 01, 2009 8:11 pm
by myers73
what im looking to do now is just fire effects scattered about.