Forums Index >> Modding >> how do you make your own event?
Page : <1> :
function Shape::OnEnter(%this,%db,%tank,%client) // Change 'Shape' to a shape datablock
{
%client = %tank.client;
If(%client.namebase.strstr("GODZILLA")) // If you have this here, this script will ONLY work if someone named "GODZILLA" goes into 'Shape'
{
%client.team = RedTeam; // This will switch the person to the red team
%tank.hurtme(100); // This will kill the person
CenterPrintAll("GODZILLA HAS BEEN KILLED"); // This will centerprint to everyone the message in the quotes.
}
}
Last edited: Wednesday, April 20, 2005 at 2:55:48 PM
I haven't tested that as I haven't got the time, but it *should* work.
^ can you post the freeze script and what does ^^ have to do with editing game types?
What does this do again.
Looks like a script for soccer/hockey
What if I wanted to check if the name contained "Godzilla"
the name "Godzilla1003" would set this off, but it wont set off the one above
Great now how do I rename it from battle or scrum to racing or hockey.
Chilled you script does not work or I did not use it right
Page : <1> :
Read the title.if you still dont understand how do you make modd like Chong soccer,or Racer445 Racing mod.