Posts
560
Respect
431Add +1
Forum Rank
Zombie Enslaver
Primary Group
Community Mapper
Login Issues
Forgot password?Activate Issues
Account activation email not received? Wrong account activation email used?Other Problems?
Contact Support - Help Center Get help on the UGX Discord. Join it now!Has released one or more maps to the UGX-Mods community which have been added to the UGX Map Manager. |
Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community. | |
BO3 Modtools Alpha | This user has access to the Black Ops 3 Modtools Alpha |
I'm working on a wonder weapon that does something upon impact but I only want it to do it on certain textures. For example if I shoot a brick texture nothing happens but If I shoot a specifically made texture such as "custom1" then the weapon impact will work. Right now it works on every surface type which is not what I want. Is there a way to get what surface or texture is being shot? Or maybe another way to force it to only work on certain textures?
Thanks,
Whippy
Has released one or more maps to the UGX-Mods community which have been added to the UGX Map Manager. |
There is a way of getting what surface is shot. I'm not sure if there is a way to get what texture is shot, but this is how you do surface:
(Example code from _utility.gsc)
As you can see, one of the things you can check when doing bullettrace is the surface type that was hit (in this example it checking if trace["surfacetype"] is not water). I don't think you can check for textures specifically, but you can make the one texture you want to accept hits something like snow (or anything) in asset manager and then not use that texture type anywhere else in your map.
so you want your own surface type?