Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
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 Go to previous messageGo to previous message
_SSnipe_ is currently offline  _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
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Serial Hashing, How Secure?
Next Topic: Invisible animation
Goto Forum:
  


Current Time: Sat Jan 25 17:48:54 MST 2025

Total time taken to generate the page: 0.01343 seconds