Teleports and other stuff

If you're looking for mapping help or you reckon you're a mapping guru, post your questions / solutions here

Moderator: Moderators

Post Reply
chizzo
Lance Corporal
Posts: 18
Joined: Sat Mar 03, 2007 8:01 am

Teleports and other stuff

Post by chizzo »

I've made some teleports in two different ways.

The fact is when i want to use those teleports at the same moment one of them does not work.

But that's not the problem. What i want to do is when a player touch a trigger it jump to another point of the map but with a message saying "you've been moved" (example) in the center of the screen not at the left top in yellow.

Am i clear?

Another thing that I want to do is show a message when a player touch a trigger... in the center of the screen and the left top.


How can I do to be invisible using trigger?

I want to set the triggers... I mean the trigger will not start if a player dont push USE key near it...

PS: (it's hard to me to say what I want cuz I dont know many words, remember, im spanish.)
User avatar
tltrude
Chuck Norris
Posts: 4774
Joined: Sun Jul 07, 2002 4:03 am
Location: Oklahoma, USA
Contact:

Center

Post by tltrude »

For the message in the center, you can use this line in your script.

thread global/message_print.scr::message "You've been moved!" NIL 4

The "NIL" stops it from adding the word "Hint: " to the beginning of the message.

The number at the end is how many seconds the massage will stay on the screen. If your map is multiplayer, everyone will see the message.

==============================================

For the left top, you can use this line in your script.

iprintlnbold_noloc "You've been moved!"

This also will be seen by all of the players in a multiplayer game.
Tom Trude,

Image
chizzo
Lance Corporal
Posts: 18
Joined: Sat Mar 03, 2007 8:01 am

Post by chizzo »

those commands are about the trigger or what?

my question was about a message printed when a player use a trigger_multiple...

i'll try.

and what about the innvisible trigger?


thanks.


EDIT:

I've read this scrip, it's used to print a message when a player touch a trigger like in The Hunt

[quote]
//==========================================
almost_there1:
// called by the trigger
local.player = parm.other // get the properties of the player that touched the trigger
if ( (local.player.dmteam != "allies") || (level.perimeter_breached == 1) ) // end if player's team is not allies, or the trigger has already been touched by an allied player
{
end
}
iprintlnbold "The Allies have breached the perimeter!"
level.perimeter_breached = 1 // set to triggered
end
//==========================================


The trigger is a trigger_multiple with this key/value.

Key: setthread
Value: almost_there1 [/quote]

Where am I suppose to add the line of the trigger? I mean, it should have a trigger to print the message... as a example... the origin of the triger is -590 1025 250... what shoul I do?

I want to use it when player try to go under the ground, so when they do it the trigger starts.

Another thing that I wanna know is how to make a player talk. For example, the player who wanna go under the ground say: Im a n00b!! I'm trying to cheat!!...
User avatar
tltrude
Chuck Norris
Posts: 4774
Joined: Sun Jul 07, 2002 4:03 am
Location: Oklahoma, USA
Contact:

map

Post by tltrude »

Are you adding your trigger in the editor, or in the script? How did you add your teleport triggers?
Tom Trude,

Image
chizzo
Lance Corporal
Posts: 18
Joined: Sat Mar 03, 2007 8:01 am

Post by chizzo »

I added the triggers in the script.
User avatar
tltrude
Chuck Norris
Posts: 4774
Joined: Sun Jul 07, 2002 4:03 am
Location: Oklahoma, USA
Contact:

script

Post by tltrude »

Although this is the wrong forum for scripting, please post your script.

local.trigger setthread almost_there1
Tom Trude,

Image
Post Reply