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

buildable flashlight possible?

broken avatar :(
Created 4 years ago
by HanGoveR_115
0 Members and 1 Guest are viewing this topic.
1,847 views
broken avatar :(
×
broken avatar :(
Location: ca
Date Registered: 16 December 2016
Last active: 4 years ago
Posts
1
Respect
Forum Rank
Fresh Corpse
Primary Group
Member
×
HanGoveR_115's Groups
HanGoveR_115's Contact & Social Links
Hey guys,

I want to know if it is possible to attach a light to the players.
I want to put in my map a buildable flashlight or just a simple flashlight. who can be used like a weapons or the sheild.

Thanks for your help.
broken avatar :(
×
broken avatar :(
Location: br
Date Registered: 20 April 2016
Last active: 1 year ago
Posts
145
Respect
Forum Rank
Pack-a-Puncher
Primary Group
Member
My Contact & Social Links
More
Personal Quote
if I surprised you, you had underestimated me
Signature
if I surprised you, it was because you underestimated me
×
Doodles_Inc's Groups
So, if want to do it, you need to search a lot on custom weapons, study the shield script (located on bo3, share, raw, scripts) and maybe on how lightning works on the COD engine, coz, IDK if dynamic lights is good for your map, maybe it wont get a good result and get really heavy.
Last Edit: September 16, 2017, 08:54:16 pm by Doodles_Inc
broken avatar :(
×
broken avatar :(
Location: usSouth Florida
Date Registered: 10 July 2016
Last active: 6 months ago
Posts
106
Respect
Forum Rank
Pack-a-Puncher
Primary Group
Donator ♥
My Groups
More
Signature
Let he who has not sinned cast the first stone.
×
Archaicvirus's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Archaicvirus's Contact & Social Links
Hey guys,

I want to know if it is possible to attach a light to the players.
I want to put in my map a buildable flashlight or just a simple flashlight. who can be used like a weapons or the sheild.

Thanks for your help.

You need to use an fx light, more info in your root/docsmodtools folder to set up the fx. I highly suggest creating your own fx in radiant. It's basically a bunch of settings you adjust, tutorials are out there. Once you have an fx light, you can link an empty to the player, then do PlayFXOnTag() on the empty. Check out my tutorial on buildables here https://ugx-mods.com/forum/index.php/topic,15031.0.html. You will also need a method for the player to toggle the flashlight. In the docsmodtools folder open the scriptapi html file, hit ctrl + f and search for buttonpressed(). That will give you hooks for keystrokes, so you can write a function to toggle the light. That plus adjusting the spawn position of the empty script_model and adjusting the angle of the light, color, etc.

 
Loading ...