How make colorful smoke?
Member since 24/05/18
3 posts
2 topics
Sorry to bother you again.
I try to make some smoke in my scene, but failed.
-------------------------------------Here is my code--------------------------------------
STREAMING::REQUEST_NAMED_PTFX_ASSET("core");
while (!STREAMING::HAS_NAMED_PTFX_ASSET_LOADED("core"))
{
Sleep(1);
}
int nEffect = GRAPHICS::START_PARTICLE_FX_NON_LOOPED_AT_COORD("fire_script_petrol_trail_smoke",
playerCentre.x + 1.0f, playerCentre.y, playerCentre.z, 0.0f, 0.0f, 0.0f, 1.0f, 0, 0, 0);
"core" is successfully loaded, but the "fire_script_petrol_trail_smoke" does not work.
and the return value is 0(nEffect).
Posted on 10/08/2018 12:01
Member since 24/05/18
3 posts
2 topics
I figure it out
STREAMING::REQUEST_NAMED_PTFX_ASSET(FX_PACK_NAME);
GRAPHICS::_SET_PTFX_ASSET_NEXT_CALL(FX_PACK_NAME);
Any HanldeEffect = GRAPHICS::START_PARTICLE_FX_LOOPED_AT_COORD(FX_NAME, pedBornCoord.x, pedBornCoord.y, pedBornCoord.z, 0.0, 0.0, 0.0, 1.0, false, false, false, false);
GRAPHICS::SET_PARTICLE_FX_LOOPED_COLOUR(HanldeEffect, 1.0f, 0.0f, 0.0f, 0);
RUN_INFO("%s %d %s EFFECT is create\r", FX_PACK_NAME, HanldeEffect, FX_NAME);
Posted on 16/08/2018 03:40
Member since 25/03/18
3 posts
0 topics
Hello lyd405121
Where do you test that?
Kindly Regards
DNP | LSMP Moderator
Posted on 29/08/2018 15:34
Moderator of LSMP