Home » Renegade Discussions » Mod Forum » how do i, teleports
Re: how do i, teleports [message #373114 is a reply to message #373112] |
Sun, 22 February 2009 22:53 |
|
reborn
Messages: 3231 Registered: September 2004 Location: uk - london
Karma:
|
General (3 Stars) |
|
|
I don't know if the script already exists, but it could be done with a script zone, and attach a script that on the ::Entered event checks the preset name of the object entering it. If it isn't a preset name that you want to be useing the tunnels, then teleport it to defined locations.
Maybe something like this:
void Vendetta_sniper_tele_zone::Entered(GameObject *obj,GameObject *enter){
if(((strcmp(Commands->Get_Preset_Name(enter),"sniper_preset_name1"))== 0) || ((strcmp(Commands->Get_Preset_Name(enter),"sniper_preset_name2"))== 0)){
//do nothing because they are a allowed sniper preset
}
else{
//they are not allowed to be there, so teleport them
Vector3 NewPosition;
//Have the new location as a user input param
NewPosition = Get_Vector3_Parameter("Location");
Commands->Set_Position(enter,NewPosition);
}
}
|
|
|
|
|
how do i, teleports
|
|
|
Re: how do i, teleports
By: _SSnipe_ on Sun, 22 February 2009 22:48
|
|
|
Re: how do i, teleports
By: reborn on Sun, 22 February 2009 22:53
|
|
|
Re: how do i, teleports
|
|
|
Re: how do i, teleports
By: _SSnipe_ on Sun, 22 February 2009 23:37
|
|
|
Re: how do i, teleports
|
|
|
Re: how do i, teleports
By: reborn on Mon, 23 February 2009 00:32
|
|
|
Re: how do i, teleports
|
|
|
Re: how do i, teleports
By: ErroR on Mon, 23 February 2009 01:19
|
|
|
Re: how do i, teleports
By: ErroR on Mon, 23 February 2009 07:40
|
|
|
Re: how do i, teleports
|
|
|
Re: how do i, teleports
By: futura83 on Mon, 23 February 2009 08:50
|
|
|
Re: how do i, teleports
|
Goto Forum:
Current Time: Sat Jan 11 15:48:25 MST 2025
Total time taken to generate the page: 0.01237 seconds
|