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

how to move an fx with the player

broken avatar :(
Created 9 years ago
by buttkicker845
0 Members and 1 Guest are viewing this topic.
1,287 views
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 11 March 2014
Last active: 3 years ago
Posts
264
Respect
Forum Rank
Mr. Elemental
Primary Group
Member
Signature
"Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live."
×
buttkicker845's Groups
buttkicker845's Contact & Social Links
so i have an fx that has a light entity in it that im using as a flashlight. i have it to where it plays the fx on the player but whenever the player turns the fx is still pointing in the same direction. is it possible to change the direction of the fx with the player?

this is the code im using at the moment, its only set up for player 1 at the moment as i want to get the flashlight working properly before worrying about getting it on all 4 players

Code Snippet
Plaintext
players = getPlayers();
flashlight_model = Spawn("script_model", players[0].origin + (2.5 , 5 , 56));
flashlight_model SetModel("tag_origin");
PlayFxOnTag(level._effect["light4"], flashlight_model, "tag_origin");
flashlight_model LinkTo(players[0]);

broken avatar :(
×
broken avatar :(
[UGX] Documentation Writer & Programmer
Location: usLos Angeles, CA
Date Registered: 23 August 2013
Last active: 6 months ago
Posts
1,322
Respect
Forum Rank
Zombie Colossus
Primary Group
UGX Team Member
My Groups
More
My Contact & Social Links
More
Personal Quote
(ง º ω º )ง u wont sum m8y?
Signature
Do not take life too seriously. You will never get out of it alive.
×
DidUknowiPwn's Groups
UGX Team Member
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Community Scripter Elite Has shown excellence and experience in the area of custom scripting in the UGX-Mods community.
BO3 Modtools Alpha
BO3 Modtools Alpha
This user has access to the Black Ops 3 Modtools Alpha
so i have an fx that has a light entity in it that im using as a flashlight. i have it to where it plays the fx on the player but whenever the player turns the fx is still pointing in the same direction. is it possible to change the direction of the fx with the player?

this is the code im using at the moment, its only set up for player 1 at the moment as i want to get the flashlight working properly before worrying about getting it on all 4 players

Code Snippet
Plaintext
players = getPlayers();
flashlight_model = Spawn("script_model", players[0].origin + (2.5 , 5 , 56));
flashlight_model SetModel("tag_origin");
PlayFxOnTag(level._effect["light4"], flashlight_model, "tag_origin");
flashlight_model LinkTo(players[0]);

You should be doing through clientscripts rather than GSC as in CSC you can define which tag to play it from.
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 11 March 2014
Last active: 3 years ago
Posts
264
Respect
Forum Rank
Mr. Elemental
Primary Group
Member
×
buttkicker845's Groups
buttkicker845's Contact & Social Links
is it pretty much the same process as doing it through gsc? or is it completely different to do it in clientscripts?
broken avatar :(
×
broken avatar :(
Senpai
Location: us
Date Registered: 28 September 2013
Last active: 3 years ago
Posts
605
Respect
Forum Rank
Zombie Enslaver
Primary Group
Box Mappers Elite
My Groups
More
My Contact & Social Links
More
×
arceus's Groups
Box Mappers Elite
Box Mappers Elite
arceus's Contact & Social LinksarceusNT
its different then gsc, id help but I'm clueless in cdc

 
Loading ...