Posts
114
Respect
10Add +1
Forum Rank
Pack-a-Puncher
Primary Group
Member
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. |
In my script I am trying to get a specific player to be teleported when they activate the "Anywhere But Here" gobblegum. I tired using player = getplayers(); but that is giving me a syntax error...
if its from anywhere but here you should have the player activating it calling the script already. just have the player running it as "self"
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. |
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 |
Thanks for your help!
EDIT: Bad Syntax on: abh_tele = GetEntArray("abh_tele","targetname");
EDIT2: I moved abh_tele = ... above teleport_points = [], and now it is saying bad syntax on teleport_points = [];
This line is missing a semicolon ; That's why you get the error
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. |
Haha! I didn't even notice it!
partly my fault derp, but that bit was copied from your code so i kinda overlooked it
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. |
No worries. When I do go in game, it says that the function is activated, but nothing happens. (I have a script_origin with the targetname: abh_tele)
also with how you set it up its gonna happen as soon as its taken from the machine