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 #373117 is a reply to message #373114] Sun, 22 February 2009 23:11 Go to previous messageGo to previous message
Distrbd21 is currently offline  Distrbd21
Messages: 743
Registered: September 2008
Karma:
Colonel

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..


Live Your Life Not Some one Else's.| Sharing Is Caring

http://dsgaming.us/distrbd21/Distrbd21%20siggy.png

Cookie Jar

Suicide
 
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 11 12:54:13 MST 2025

Total time taken to generate the page: 0.00780 seconds