script for teleporting zombies

broken avatar :(
Created 2244 days ago
by greenlungs81
0 Members and 1 Guest are viewing this topic.
2,521 views
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.
i need a script for teleporting zombies can someone plz help
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
[You are not allowed to view external links. Register or Login to see them]
zombie_teleport(){
triggerPlayer = getEnt("player_zombie_trigger","targetname");
triggerZombie = getEnt("zombie_zombie_trigger","targetname");
targetTeleport = getStruct("zombie_teleport_target","targetname");
while(1){
triggerPlayer waittill("trigger");
zombieArray = GetAIArray("axis");
for (i = 0;i<zombieArray.size;i++){
if(zombieArray[i] isTouching triggerZombie){
zombieArray[i] Teleport(targetTeleport.origin, (0,0,0));
iPrintLn("Zombie  "+i+" has been teleported to origin: "+targetTeleport.origin);
}
}
}
}
How script works:
1) When player enters trigger multiple or uses trigger use with targetname "player_zombie_trigger" the script gets all zombies on the map
2) When zombies are touching the trigger multiple with targetname "zombie_zombie_trigger" they are being teleported to script struct with targetname "zombie_teleport_target" and the info what zombie has been teleported to the script struct and also gives info where is the struct appears
Hope this helped.
EDIT: You need to paste this into your map's gsc file and type
thread zombie_teleport();
after
maps\_zombiemode::main();
Last Edit: August 28, 2013, 11:39:02 am by Ray1235
broken avatar :(
×
broken avatar :(
☭ Soviet Commander ☭
Location: us
Date Registered: 13 August 2012
Last active: 1212 days ago
Posts
2,794
Respect
Forum Rank
King of the Zombies
Primary Group
Community Daedra
My Groups
More
My Contact & Social Links
More
Signature
Let's keep this thread on topic from here on in. -DBZ

+1 to off-topic reply -DBZ

lmao. Too funny.

Goliath Script Placer: http://ugx-mods.com/forum/index.php/topic,11234.msg125257/topicseen.html#new

"...Christ, people. Learn C, instead of just stringing random characters
together until it compiles (with warnings)..."

-Linus Torvalds
×
daedra descent's Groups
Community Daedra
Community Daedra
daedra descent's Contact & Social LinksBlueSoviet
[You are not allowed to view external links. Register or Login to see them]
zombie_teleport(){
triggerPlayer = getEnt("player_zombie_trigger","targetname");
triggerZombie = getEnt("zombie_zombie_trigger","targetname");
targetTeleport = getStruct("zombie_teleport_target","targetname");
while(1){
triggerPlayer waittill("trigger");
zombieArray = GetAIArray("axis");
for (i = 0;i<zombieArray.size;i++){
if(zombieArray[i] isTouching triggerZombie){
zombieArray[i] Teleport(targetTeleport.origin, (0,0,0));
iPrintLn("Zombie  "+i+" has been teleported to origin: "+targetTeleport.origin);
}
}
}
}
How script works:
1) When player enters trigger multiple or uses trigger use with targetname "player_zombie_trigger" the script gets all zombies on the map
2) When zombies are touching the trigger multiple with targetname "zombie_zombie_trigger" they are being teleported to script struct with targetname "zombie_teleport_target" and the info what zombie has been teleported to the script struct and also gives info where is the struct appears
Hope this helped.
EDIT: You need to paste this into your map's gsc file and type
thread zombie_teleport();
after
maps\_zombiemode::main();

Would a zombie use this to get closer to the players, as if it was the most direct way of getting to the them?
Last Edit: August 28, 2013, 12:04:56 pm by daedra descent
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.
dont work
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
broken avatar :(
×
broken avatar :(
drago
Location: mx
Date Registered: 5 July 2013
Last active: 371 days ago
Posts
947
Respect
Forum Rank
The Decider
Primary Group
Member
My Contact & Social Links
More
×
jjbradman's Groups
jjbradman's Contact & Social Linksjjbradmanjjbradmanjjbradman
is this supposed to work like five? if it does i might be making a five remake!! \:D/
broken avatar :(
×
broken avatar :(
[UGX] Lead Asset Creator
Location: ca
Date Registered: 17 August 2012
Last active: 10 days ago
Posts
1,932
Respect
Forum Rank
Zombie Destroyer
Primary Group
UGX V.I.P.
My Groups
More
My Contact & Social Links
More
Personal Quote
Eh?
Signature
[You are not allowed to view external links. Register or Login to see them]
(Click to enter portfolio)
×
SajeOne'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.
i might be making a five remake!! \:D/
Please don't, put your creativity into something new, not something I could open up and play now.
broken avatar :(
×
broken avatar :(
Location: usunited states
Date Registered: 19 August 2012
Last active: 173 days ago
Posts
215
Respect
Forum Rank
Mr. Elemental
Primary Group
Member
Personal Quote
Mapper
Signature
Maker of Contrivance
×
Psych's Groups
Psych's Contact & Social Links
Please don't, put your creativity into something new, not something I could open up and play now.

LOL! Right on and well said!
broken avatar :(
×
broken avatar :(
drago
Location: mx
Date Registered: 5 July 2013
Last active: 371 days ago
Posts
947
Respect
Forum Rank
The Decider
Primary Group
Member
My Contact & Social Links
More
×
jjbradman's Groups
jjbradman's Contact & Social Linksjjbradmanjjbradmanjjbradman
Please don't, put your creativity into something new, not something I could open up and play now.

well but anyways i would like to get the five script as all the map ideas i have use elevators and this might be helpful :)
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.
ray i told you what the error was  thread zombie_teleport();
i did everything you said

 

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