i need help with a script

Have questions about CoD4 mapping that aren't covered in the tutorials section? Post here!

Moderator: Core Staff

Post Reply
Xenon
CJ Newbie
CJ Newbie
Posts: 57
Joined: December 29th, 2011, 12:42 am
Gamertag: Xenon iz Dubby

i need help with a script

Post by Xenon » December 29th, 2011, 12:46 am

hey, ive been makking maps for a while but i need help with something , basically i have a button on my map with a targetname of tele2 and i want it soo that when i press(use) it teleports me to my script_origin :D i know how to make normal teleports work but not by pressing a button ..... please help Xenon :)

User avatar
Rezil
Core Staff
Core Staff
Posts: 2030
Joined: July 24th, 2006, 11:21 am
Location: Cramped in a small cubicle/making another jump map

Re: i need help with a script

Post by Rezil » December 29th, 2011, 1:00 am

If you're using a teleport script, it's basically the same process, just use a different trigger(use_touch instead of multiple).
Drofder2004: Drofder's rules for reviewing a map
[...]
#5 If your name is Rezil, minimum 5/5.
---
<LT>YosemiteSam[NL]:
I heard somewhere that the best way to start is juggling 2 balls with one hand, so you will get a feel for it.

Xenon
CJ Newbie
CJ Newbie
Posts: 57
Joined: December 29th, 2011, 12:42 am
Gamertag: Xenon iz Dubby

Re: i need help with a script

Post by Xenon » December 29th, 2011, 1:06 am

:D thank you and also is there a way of using like hint_activate in the same way ????

IzNoGoD
CJ Worshipper
CJ Worshipper
Posts: 343
Joined: January 6th, 2009, 8:39 pm
Location: Netherlands/Holland

Re: i need help with a script

Post by IzNoGoD » December 29th, 2011, 1:32 pm

trigger sethintstring("Press this button to teleport");
LMGTFY!

Its not a glitch... Its the future!

Post Reply

Who is online

Users browsing this forum: No registered users and 31 guests