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

script for teleporting zombies

broken avatar :(
Created 11 years ago
by greenlungs81
0 Members and 1 Guest are viewing this topic.
3,443 views
broken avatar :(
×
broken avatar :(
Location: usUnited States
Date Registered: 29 July 2013
Last active: 4 months ago
Posts
27
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 :(
  • DeletedUser
  • Deleted Member
×
broken avatar :(
DeletedUser
This user is deleted :(
http://pastebin.com/ck2HqpUR
Code Snippet
Plaintext
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();
broken avatar :(
×
broken avatar :(
☭ Soviet Commander ☭
Location: us
Date Registered: 13 August 2012
Last active: 8 years ago
Posts
2,790
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
http://pastebin.com/ck2HqpUR
Code Snippet
Plaintext
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: 4 months ago
Posts
27
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 :(
  • DeletedUser
  • Deleted Member
×
broken avatar :(
DeletedUser
This user is deleted :(
broken avatar :(
×
broken avatar :(
drago
Location: mx
Date Registered: 5 July 2013
Last active: 4 years ago
Posts
942
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 :(
Former UGX Lead Asset Creator
Location: ca
Date Registered: 17 August 2012
Last active: 5 years 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

(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: 2 years 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: 4 years ago
Posts
942
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: 4 months ago
Posts
27
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

 
Loading ...