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

teleporters like in revelations

HOT
broken avatar :(
Created 7 years ago
by AdvancedDecay
0 Members and 1 Guest are viewing this topic.
4,041 views
broken avatar :(
×
broken avatar :(
Location: deDortmund
Date Registered: 20 December 2015
Last active: 5 months ago
Posts
307
Respect
Forum Rank
Perk Hacker
Primary Group
Community Scripter
My Groups
More
Personal Quote
Payback
Signature
Tears Of The Fallen | Join the project https://discord.gg/8gDNQRj
×
fanmagic's Groups
Community Scripter Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community.
fanmagic's Contact & Social LinksTears Of The Fallen
whats ur steam what time is it where u are how long till u wake up??
I wake up in about 6h - but i have to write an essay at school. Maybe im ready in the next 12h to work on the problem.
broken avatar :(
×
broken avatar :(
Location: gb
Date Registered: 13 March 2016
Last active: 4 years ago
Posts
76
Respect
Forum Rank
Rotting Walker
Primary Group
Member
×
AdvancedDecay's Groups
AdvancedDecay's Contact & Social Links
@smasher248 could u also help maybe and thanks fanmagic I cant wait for u to help more

+1 Respect to FanMagic

Double Post Merge: December 09, 2016, 01:45:10 pm
create a trigger_multiple and give it a targetname e.g. "tp_first_room"
add a script_origin and give it a targetname e.g. "nacht_spawn"

add this under maps\_zombiemode::main(); in your mapname.gsc
Code Snippet
Plaintext
thread rev_teleporter();
add this function at the button of the file
Code Snippet
Plaintext
rev_teleporter()
{
tp_trigger_spawn_room = getEnt ("tp_first_room","targetname"); //Define the Teleporter-Trigger
nacht_spawn = getEnt ("nacht_spawn","targetname"); //Define the Spawnpoint
thread teleporter_on(tp_trigger_spawn_room,nacht_spawn); //Thread the tp function with both
}

teleporter_on(trigger,spawn)
{
while(1)
{
trigger waittill( "trigger",player );
player setOrigin( spawn.origin );
}
}
To add a new tp to the script you only have to add the new trigger and the new script_origin into the first function like this
Code Snippet
Plaintext
rev_teleporter()
{
tp_trigger_spawn_room = getEnt ("tp_first_room","targetname"); //Define the Teleporter-Trigger
nacht_spawn = getEnt ("nacht_spawn","targetname"); //Define the Spawnpoint
thread teleporter_on(tp_trigger_spawn_room,nacht_spawn); //Thread the tp function with both

tp_trigger_mob = getEnt ("tp_mob","targetname");
first_room_spawn = getEnt ("first_room_spawn","targetname");
thread teleporter_on(tp_trigger_mob,first_room_spawn);
}
I think it's not too hard to understand how you add new teleporters.
If you have more questions just ask.

any progress
Last Edit: December 09, 2016, 01:45:10 pm by AdvancedDecay

 
Loading ...