Posts
577
Respect
163Add +1
Forum Rank
Zombie Enslaver
Primary Group
Community Scripter
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!Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum. | |
Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community. |
maybe also return
as time incase you have a
after
Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum. | |
Has shown excellence and experience in the area of custom scripting in the UGX-Mods community. | |
Oil Rig Beta Access |
couldnt you just waittill movedone or did i miss read and not understand what you said correctly?
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 |
This allows you to enter a unit of speed rather than a unit of time.
its pretty much the same as MoveTo except instead of putting the amount of seconds you want it to move, you put the units-per-second speed you want it to move.
Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum. | |
Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community. |
Seems a waste to me. I can just write the one line you have in the function...? Why would one create a function? If you really want to make a function, then add more to it, or add multiple functions. Some thing more like (could be split into movetostruct_speed or movetoent_speed:
Or maybe it is just me... Not tested, just theory.
Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum. | |
UGX V.I.P. | |
Has shown excellence and experience in the area of custom mapping in the UGX-Mods community. | |
Has shown excellence and experience in the area of custom scripting in the UGX-Mods community. | |
BO3 Modtools Alpha | This user has access to the Black Ops 3 Modtools Alpha |
I agree, but i also noticed treyarch did this an awful lot too
Functions that just return variables and stuff lol, never really understood why
Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum. | |
Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community. |
Usually you only use function returning a single variable in object oriented programming, so it makes no sense with a normal function.
Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum. | |
Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community. |
couldnt you just waittill movedone or did i misread and not understand what you said correctly?
Seems a waste to me. I can just write the one line you have in the function...? Why would one create a function?
If you really want to make a function, then add more to it, or add multiple functions. Some thing more like (could be split into movetostruct_speed or movetoent_speed:
Or maybe it is just me... Not tested, just theory.
for some particualr things i do find that i just prefer it that way to be fair
like my perks ( which prob are OOP ), I prefer to use get_perk_machines(); to get the array, despite the fact i could just use
perks = getEntArray( "machines", "targetname" );
or whatever. I always assumed then if i needed to change that aspect, and reflect these changes on everything i used it for, this would be more ideal than searching through all my scripts again. Which worked out actualy when i did a check to see if they had actually spawned, i just stuck it in there, applied across the board
leaves room to add / accept certain arguments too then, but also leads to fleshing out that function too, like you guys said
its prob not the right term but i always call these "points of interaction"
Quite a interesting subject we have stumbled on
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 |
nah thats too much and too specific and off topic for this anyways.
Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum. | |
Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community. |
Lol, what? It's exactly the same as what you posted with more "options" lol, off topic and too specific.
The difference is you don't have to get the ent or struct before you thread "your" new "function". This isolates redundancies, that are always present in either function, mine or yours, the object. The wait is only effective if you call the function vs threading them.
Edit, and I only mean, if you make a function, it should be more than the same thing, or less than really, cause you actually lose functionality of the moveto function with this, as soy sort of mentioned. You can do anything, just not replace one line for another, that's silly. I'm trying to help you, not correct you. Technically each version could also do with an if isdefined else for pos as well, maybe with a println for troubleshooting.