fx = spawn("script_model", -802,-479,1021 ); fx setModel("tag_origin"); playFxOnTag("dlc0/factory/fx_laser_hotspot_factory",fx,"tag_origin");
But when the function gets called the fx doesnt spawn! Does anybody know what i could be doing wrong? Yes, im prechacing the model and fx at the top of the script!
Last Edit: October 31, 2016, 06:55:07 am by IperBreach86
fx = spawn("script_model", -802,-479,1021 ); fx setModel("tag_origin"); playFxOnTag("dlc0/factory/fx_laser_hotspot_factory",fx,"tag_origin");
But when the function gets called the fx doesnt spawn! Does anybody know what i could be doing wrong? Yes, im prechacing the model and fx at the top of the script!
The "Spawn" engine function only takes 2 arguments.
Use it like this: Spawn(<classname(entity name)>, <origin>);
The way you are using it is wrong, if i'm not mistaken this should work:
Code Snippet
Plaintext
fx = spawn("script_model", (-802,-479,1021) );
// Or alternatively you could try this, they are essentially the same though so its up to you.
origin = (-802,-479,1021); fx = spawn("script_model", origin);