Home » Renegade Discussions » Mod Forum » how do i, teleports
Re: how do i, teleports [message #373118 is a reply to message #373117] |
Sun, 22 February 2009 23:37 |
_SSnipe_
Messages: 4121 Registered: May 2007 Location: Riverside Southern Califo...
Karma:
|
General (4 Stars) |
|
|
Vendetta wrote on Sun, 22 February 2009 22:11 |
reborn wrote on Sun, 22 February 2009 23:53 | 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 make scripts? i'm only good at modding..
|
Scripts are all C++ unless you know c++ dont even try, if you do then
http://www.renegadeforums.com/index.php?t=msg&th=26642&start=0&rid=2 2699
|
|
|
|
|
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 25 17:48:54 MST 2025
Total time taken to generate the page: 0.01343 seconds
|