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

Rotate FX?

broken avatar :(
Created 10 years ago
by NaviLlusShore
0 Members and 1 Guest are viewing this topic.
2,267 views
broken avatar :(
×
broken avatar :(
Location: usThe North Pole
Date Registered: 12 September 2013
Last active: 10 years ago
Posts
123
Respect
Forum Rank
Pack-a-Puncher
Primary Group
Member
My Contact & Social Links
More
Personal Quote
I have come from the future
Signature
NaviLlicious
×
NaviLlusShore's Groups
NaviLlusShore's Contact & Social LinksTheHubbyNaviLlusShore
Silly question but how do you rotate the FX? I'm trying to put In a spotlight but the beam Is pointing toward the sky and I wan't It pointing toward an object
broken avatar :(
  • n123q45
  • Deleted Member
×
broken avatar :(
n123q45
This user is deleted :(
either use easy fx and rotate the script struct or edit the effect in effects editor
broken avatar :(
×
broken avatar :(
Location: usThe North Pole
Date Registered: 12 September 2013
Last active: 10 years ago
Posts
123
Respect
Forum Rank
Pack-a-Puncher
Primary Group
Member
My Contact & Social Links
More
Personal Quote
I have come from the future
×
NaviLlusShore's Groups
NaviLlusShore's Contact & Social LinksTheHubbyNaviLlusShore
Started getting a bad syntax all of a sudden lol this Is the line I'm getting the error for
Code Snippet
Plaintext
	level.fx_debug = undefined; // '1' = ON, 'undefined' = OFF
and this Is the rest of the function
Code Snippet
Plaintext
fx_setup() //This is where the FX are precached. Any FX you want to use must be added to your mapname_patch.csv as well as listed below. 
{
//Usage: level._effect["alias"] = loadFX("path/to/fx/name");
//Where 'alias' is your personal name for the fx that you will use later in the code, and 'path/to/fx/name' is the file location + name of the fx you want to assign to the variable. See below for examples:
//When entering the fx path, be sure to only include folder names that are within /raw/fx, and make sure to leave off the file extension (.efx).
//If you want to preview any of these FX, open Launcher, click the EffectsEd button, then File>Open the file you wish to preview. Then press the green play button.

////// HOW TO ADD CUSTOM ONES ////

level._effect["NAME"] = loadFX("FX/PATH/GOES/HERE");

///// END ADDED ONE BY ME /////

    level._effect["spotlight"]      = loadFX("env/light/fx_ray_spotlight_md")

//all\\


//End all\\



level.fx_debug = undefined; // '1' = ON, 'undefined' = OFF
}
It was working just fine until I moved the script Into the maps folder and took It out of the mapname createfx folder, but when I move It back to createfx folder It tells me It can't find maps/em_fx::fx_setup();
broken avatar :(
×
broken avatar :(
[UGX] Founder
Location: usBay Area, California
Date Registered: 24 June 2011
Last active: 9 months ago
Posts
5,551
Respect
6,691Add +1
Forum Rank
Immortal
Primary Group
UGX Administrator
My Groups
More
My Contact & Social Links
More
Signature
If Java had true garbage collection, most programs would delete themselves upon execution.
×
treminaor's Groups
UGX Administrator
UGX Team Member
UGX Site Moderator Has the ability to issue warnings to users, edit and remove posts from the forum and to move topics to other boards. Upholds the rules of the forum. Moderates Chat Rooms.
You're missing a ; after this line:

Code Snippet
Plaintext
level._effect["spotlight"]      = loadFX("env/light/fx_ray_spotlight_md")
broken avatar :(
×
broken avatar :(
Location: usThe North Pole
Date Registered: 12 September 2013
Last active: 10 years ago
Posts
123
Respect
Forum Rank
Pack-a-Puncher
Primary Group
Member
My Contact & Social Links
More
Personal Quote
I have come from the future
×
NaviLlusShore's Groups
NaviLlusShore's Contact & Social LinksTheHubbyNaviLlusShore
You're missing a ; after this line:

Code Snippet
Plaintext
level._effect["spotlight"]      = loadFX("env/light/fx_ray_spotlight_md")
Ah thanks I don't know where It went cause I didn't edit It after I put the line In and It worked until I moved the file Itself

Post Merge: January 09, 2014, 05:59:48 am
either use easy fx and rotate the script struct or edit the effect in effects editor
Rotating the script struct didn't rotate the light the beam still points to the sky
Last Edit: January 09, 2014, 05:59:48 am by NaviLlusShore
broken avatar :(
×
broken avatar :(
Former UGX Lead Asset Creator
Location: ca
Date Registered: 17 August 2012
Last active: 5 years ago
Posts
1,932
Respect
Forum Rank
Zombie Destroyer
Primary Group
UGX V.I.P.
My Groups
More
My Contact & Social Links
More
Personal Quote
Eh?
Signature

(Click to enter portfolio)
×
SajeOne's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
UGX V.I.P.
UGX V.I.P.
Guessing you are using the PlayFX() function for your FX? Use PlayFXOnTag() and play it on a script model you spawned at the struct and set it to the model "tag_origin_animate". Then on the PlayFXOnTag() function make the tag argument "origin_animate_jnt".

http://www.zeroy.com/script/effects/playfxontag.htm

 
Loading ...