Teleporter not working

broken avatar :(
Created 2257 days ago
by Ray1235
0 Members and 1 Guest are viewing this topic.
1,615 views
broken avatar :(
×
broken avatar :(
The OG Polish Modder
Location: pl
Date Registered: 19 June 2013
Last active: 281 days ago
Posts
1,666
Respect
Forum Rank
Zombie Destroyer
Primary Group
Donator ♥
My Groups
More
My Contact & Social Links
More
Personal Quote
#RyukoRocks
Signature
[FS] Social Networking, Lead Animator and Scripter
[You are not allowed to view external links. Register or Login to see them]
[You are not allowed to view external links. Register or Login to see them]
×
Ray1235's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
BO3 Modtools Alpha
BO3 Modtools Alpha
This user has access to the Black Ops 3 Modtools Alpha
So with help of sajeone i made a teleporter which teleports the player for free and the only thing it doesnt do is setting player position (basically setorigin doesnt want to work)
Script: [You are not allowed to view external links. Register or Login to see them]
teleporter1_think()
{
teleportUse = getEnt("teleport1_trigger", "targetname");
teleportMultiple = getEnt("teleport1_multiple","targetname");
teleportTarget = getEntArray("teleporter1_targetspawn","targetname");
teleportUse setHintString("Press &&1 to teleport");
while(1)
{
teleportUse waittill("trigger");
players = get_players();
for(i=0;i<players.size;i++)
{
if(players[i] IsTouching(teleportMultiple)){
players[i] setOrigin(teleportTarget[i].origin);
players[i] ShellShock("electrocution", 1, true);
}
}
earthquake( 1, 2, teleportTarget[0], 1000);
SetTimescale(0.1);
wait(1);
SetTimescale(1);
}
}
Last Edit: August 15, 2013, 04:31:09 pm by Ray1235
broken avatar :(
×
broken avatar :(
[UGX] Founder
Location: usBay Area, California
Date Registered: 24 June 2011
Last active: 73 days ago
Posts
5,545
Respect
6,494Add +1
Forum Rank
Immortal
Primary Group
UGX Administrator
My Groups
More
My Contact & Social Links
More
Signature
If Java had true garbage collection, most programs would delete themselves upon execution.
×
treminaor's Groups
UGX Administrator
UGX Team Member
UGX Site Moderator Has the ability to issue warnings to users, edit and remove posts from the forum and to move topics to other boards. Upholds the rules of the forum. Moderates Chat Rooms.
Does the shellshock part happen? If so, your teleportTarget origin is probably not defined. If the shellshock part doesn't happen either, then your isTouching check is not working, most likely because telepoyrtMultiple is undefined. Add some iPrintLn's and isDefined() if you have to for debugging.
broken avatar :(
×
broken avatar :(
Location: usUnited States
Date Registered: 29 July 2013
Last active: 18 days ago
Posts
28
Respect
Forum Rank
Legless Crawler
Primary Group
Donator ♥
My Groups
More
My Contact & Social Links
More
×
greenlungs81's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
y not just copy the ones out of the tutorial and make it look like u want
broken avatar :(
×
broken avatar :(
The OG Polish Modder
Location: pl
Date Registered: 19 June 2013
Last active: 281 days ago
Posts
1,666
Respect
Forum Rank
Zombie Destroyer
Primary Group
Donator ♥
My Groups
More
My Contact & Social Links
More
Personal Quote
#RyukoRocks
×
Ray1235's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
BO3 Modtools Alpha
BO3 Modtools Alpha
This user has access to the Black Ops 3 Modtools Alpha
Does the shellshock part happen? If so, your teleportTarget origin is probably not defined. If the shellshock part doesn't happen either, then your isTouching check is not working, most likely because telepoyrtMultiple is undefined. Add some iPrintLn's and isDefined() if you have to for debugging.
The shellshock part happen succesfully and im pretty sure that I properly targetnamed the script_structs.
broken avatar :(
×
broken avatar :(
[UGX] Founder
Location: usBay Area, California
Date Registered: 24 June 2011
Last active: 73 days ago
Posts
5,545
Respect
6,494Add +1
Forum Rank
Immortal
Primary Group
UGX Administrator
My Groups
More
My Contact & Social Links
More
×
treminaor's Groups
UGX Administrator
UGX Team Member
UGX Site Moderator Has the ability to issue warnings to users, edit and remove posts from the forum and to move topics to other boards. Upholds the rules of the forum. Moderates Chat Rooms.
The shellshock part happen succesfully and im pretty sure that I properly targetnamed the script_structs.
You can't use getEntArray with structs. You use getStructArray.
broken avatar :(
×
broken avatar :(
The OG Polish Modder
Location: pl
Date Registered: 19 June 2013
Last active: 281 days ago
Posts
1,666
Respect
Forum Rank
Zombie Destroyer
Primary Group
Donator ♥
My Groups
More
My Contact & Social Links
More
Personal Quote
#RyukoRocks
×
Ray1235's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
BO3 Modtools Alpha
BO3 Modtools Alpha
This user has access to the Black Ops 3 Modtools Alpha
You can't use getEntArray with structs. You use getStructArray.
Renamed. Compiling the map right now. Ill let you know if it worked.

Post Merge: August 15, 2013, 08:13:42 pm
Worked! Thanks! My map is near finished!
Last Edit: August 15, 2013, 08:13:42 pm by Ray1235

 

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 Twitch
Loading ...