UGX-Mods Login

or login with an authentication provider below
Sign In with Google
Sign In with Twitter
Sign In with Discord
Sign In with Steam
Sign In with Facebook
Sign In with Twitch

FX not spawning!

broken avatar :(
Created 7 years ago
by IperBreach86
0 Members and 1 Guest are viewing this topic.
1,269 views
broken avatar :(
×
broken avatar :(
Location: it
Date Registered: 5 September 2014
Last active: 3 years ago
Posts
282
Respect
Forum Rank
Mr. Elemental
Primary Group
Member
My Contact & Social Links
More
Personal Quote
I belive purple is getting me...
×
IperBreach86's Groups
IperBreach86's Contact & Social LinksIperBreach86
I'm trying to spawn an fx like this:
Code Snippet
Plaintext
		 		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
Marked as best answer by IperBreach86 7 years ago
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 12 September 2016
Last active: 3 years ago
Posts
306
Respect
Forum Rank
Perk Hacker
Primary Group
Member
My Contact & Social Links
More
×
reckfullies's Groups
reckfullies's Contact & Social LinksReckfulliesReckfullies
I'm trying to spawn an fx like this:
Code Snippet
Plaintext
		 		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);

 
Loading ...