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

A few questions

broken avatar :(
Created 11 years ago
by Ping998
0 Members and 1 Guest are viewing this topic.
1,686 views
broken avatar :(
×
broken avatar :(
Location: scotland
Date Registered: 2 September 2013
Last active: 2 years ago
Posts
379
Respect
Forum Rank
Perk Hacker
Primary Group
Mapper
My Groups
More
My Contact & Social Links
More
Personal Quote
Ping998
Signature
"My maps might not be the best looking, or the most hyped, but I still release them in hopes that they can make others somewhat happy"

- Ping
×
Ping998's Groups
Mapper Has released one or more maps to the UGX-Mods community.
Ping998's Contact & Social LinksZPing998Ping998Ping998CreepersAreAwesome
Ok so I had a bizarre idea for a map and I need a few things in order to create it:

1. I would need the zombies to walk to a certain point rather than going for the players. (Like an always active interest point)

2. I would also need a trigger to which if the zombies touch the trigger it will end the game.

Is any of this even possible? Let me know if you know what to do.
Marked as best answer by CreepersAreEpic 11 years ago
broken avatar :(
×
broken avatar :(
Location: usUnited States
Date Registered: 7 March 2014
Last active: 3 months ago
Posts
1,190
Respect
Forum Rank
Zombie Colossus
Primary Group
UGX Site Moderator
My Groups
More
My Contact & Social Links
More
×
MZslayer11's Groups
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.
MZslayer11's Contact & Social LinksMZslayer11Service_Code_30#2655
I know the first one would be possible because it's basically the same thing as what Quick Revive, Vulture Aid (green mist) and Teleporter scripts use to distract the zombies from the players. It could probably be easily adapted to work for the entire length of the game.

As for the seccond one, I'm pretty sure that would be pretty easy for a scripter to script as well, so probably yes, those would both be possible.

broken avatar :(
×
broken avatar :(
Location: nlApeldoorn
Date Registered: 17 December 2013
Last active: 2 years ago
Posts
1,186
Respect
1,332Add +1
Forum Rank
Zombie Colossus
Primary Group
Scripter Elite
My Groups
More
My Contact & Social Links
More
Personal Quote
It aint much, if it aint Dutch
Signature
×
BluntStuffy's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Scripter Elite Has shown excellence and experience in the area of custom scripting in the UGX-Mods community.
Oil Rig Beta Access
Oil Rig Beta Access
BluntStuffy's Contact & Social LinksBluntStuffyBluntstuffy@BluntZombieStuffyZombie
You can use
Code Snippet
Plaintext
setgoalpos( origin )

or
Code Snippet
Plaintext
setgoalent ( ent )

for example to 'guide' a single zombie somewhere.

For the game ending use a trigger-multiple or -radius and run a loop either on the zombie or the trigger to see if they are touching each other: ( with the correct spawnflags you could also do a waittill "trigger" with the trigger-multiple )


Code Snippet
Plaintext

// the zombie that needs to touch the trigger(s) calls this, so is the self-ent in this example
end_game_touch()
{
self endon( "death" );

triggers = getentarray( "dont_touch", "targetname" );

while(1)
{
for( i=0 ; i<trigers.size ; i++ )
{
if( self istouching( triggers[i] ) )
{
level notify( "end_game" );
}
}
wait 0.2;
}
}
broken avatar :(
  • steviewonder87
  • Deleted Member
×
broken avatar :(
steviewonder87
This user is deleted :(
You can use
Code Snippet
Plaintext
setgoalpos( origin )

or
Code Snippet
Plaintext
setgoalent ( ent )

for example to 'guide' a single zombie somewhere.

For the game ending use a trigger-multiple or -radius and run a loop either on the zombie or the trigger to see if they are touching each other: ( with the correct spawnflags you could also do a waittill "trigger" with the trigger-multiple )


Code Snippet
Plaintext

// the zombie that needs to touch the trigger(s) calls this, so is the self-ent in this example
end_game_touch()
{
self endon( "death" );

triggers = getentarray( "dont_touch", "targetname" );

while(1)
{
for( i=0 ; i<trigers.size ; i++ )
{
if( self istouching( triggers[i] ) )
{
level notify( "end_game" );
}
}
wait 0.2;
}
}

Sounds like he wants to make a map similar to the 'Candy Cane' mini-game you made on Warehouse.
broken avatar :(
×
broken avatar :(
Location: scotland
Date Registered: 2 September 2013
Last active: 2 years ago
Posts
379
Respect
Forum Rank
Perk Hacker
Primary Group
Mapper
My Groups
More
My Contact & Social Links
More
Personal Quote
Ping998
×
Ping998's Groups
Mapper Has released one or more maps to the UGX-Mods community.
Ping998's Contact & Social LinksZPing998Ping998Ping998CreepersAreAwesome
Thanks for helping me guys however, I managed to contact MakeCents and he gave me a script that works exactly how I wanted it. (Thanks MakeCents!)

 
Loading ...