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

MoveTo(); doing nothing.

HOT
broken avatar :(
Created 8 years ago
by Centric
0 Members and 1 Guest are viewing this topic.
4,571 views
broken avatar :(
×
broken avatar :(
Location: fi
Date Registered: 25 June 2013
Last active: 8 months ago
Posts
3,997
Respect
1,024Add +1
Forum Rank
Eviscerator
Primary Group
UGX V.I.P.
My Groups
More
My Contact & Social Links
More
×
HitmanVere'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.
Community Mapper Has released one or more maps to the UGX-Mods community which have been added to the UGX Map Manager.
BO3 Modtools Alpha
BO3 Modtools Alpha
This user has access to the Black Ops 3 Modtools Alpha
Is rock2 defined anywhere btw? If its in other script, but not in this one with GetEnt added, I suggests adding GetEnt on this script also
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 21 April 2013
Last active: 8 years ago
Posts
49
Respect
Forum Rank
Legless Crawler
Primary Group
Member
My Contact & Social Links
More
×
I recently had a similar problem in clientscripts, if you can get the rock2_target.origin to print and it still isn't working. Then you may have to convert it to an integer (shouldn't need to with this, but I'm just trying to help).
Code Snippet
Plaintext
rock2_target = GetEnt("rock2_Start","targetname");
iprintln(rock2_target.origin); //test
origin0 = int(rock2_target.origin[0]);
origin1 = int(rock2_target.origin[1]);
origin2 = int(rock2_target.origin[2]);
rock2 MoveTo((origin0, origin1, origin2), 3, 0.1, 0.1);
Last Edit: October 25, 2015, 03:40:50 pm by offthewall2112
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
I recently had a similar problem in clientscripts, if you can get the rock2_target.origin to print and it still isn't working. Then you may have to convert it to an integer (shouldn't need to with this, but I'm just trying to help).
Code Snippet
Plaintext
rock2_target = GetEnt("rock2_Start","targetname");
iprintln(rock2_target.origin); //test
origin0 = int(rock2_target.origin[0]);
origin1 = int(rock2_target.origin[1]);
origin2 = int(rock2_target.origin[2]);
rock2 MoveTo((origin0, origin1, origin2), 3, 0.1, 0.1);
Or you know just manually define the origin.
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 21 April 2013
Last active: 8 years ago
Posts
49
Respect
Forum Rank
Legless Crawler
Primary Group
Member
My Contact & Social Links
More
×
Or you know just manually define the origin.
Yeah he could probably do that for this if the origin is predictable. The other day when I was struggling with the same issue (getplayerangles() as a clientdvar in clientscripts), the only solution for the moveto() problem was my previous post.
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 2 April 2014
Last active: 2 years ago
Posts
481
Respect
Forum Rank
Perk Hacker
Primary Group
Donator ♥
My Groups
More
My Contact & Social Links
More
Personal Quote
If it's not perfect, you'll never see it.
Signature
Learn by doing, not copy and pasting.

Enjoy my 2015 contest map, a simple map with bo1-bo2 features
http://ugx-mods.com/forum/index.php?topic=14968.msg149200#
×
Centric's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Centric's Contact & Social Linkscentricccentric_
Messed around with it more, got it to work in a different part of the script where I was able to use 'self' but still can't use it this way. For this particular part I would need to rewrite all of it to get it working with self but if nothing helps I might do that.

Previously the rock vars were defined in a different function and passed along as it was threaded, I tried defining them in the actual function and it still didn't work.
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?
×
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
Messed around with it more, got it to work in a different part of the script where I was able to use 'self' but still can't use it this way. For this particular part I would need to rewrite all of it to get it working with self but if nothing helps I might do that.

Previously the rock vars were defined in a different function and passed along as it was threaded, I tried defining them in the actual function and it still didn't work.
Saying all this doesn't mean a thing if somewhere the ents are undefined.

Just PM me your script and I'll look at it.

 
Loading ...