Need help finding a script [message #271843] |
Sun, 08 July 2007 22:06 |
piotrkol1
Messages: 167 Registered: July 2005 Location: Milwaukee, Wisconsin
Karma: 0
|
Recruit |
|
|
Hey there just have a quick question about a script. I am trying to mod the nuetral spawners on my serverside maps. Instead of spawning as the gdi soldier, I want them to spawn as a mutant with the chem sprayer. The problem is I dont know what the right script I'm looking for is called so I can't find it. I'm looking for the script that when you attach it to a script zone, you change characters, does anyone know what its called? Thanks!!!
|
|
|
|
Re: Need help finding a script [message #271896 is a reply to message #271870] |
Mon, 09 July 2007 04:11 |
|
reborn
Messages: 3231 Registered: September 2004 Location: uk - london
Karma: 0
|
General (3 Stars) |
|
|
joe937465 wrote on Mon, 09 July 2007 03:04 | just open up the gdi and no start up spawners and choose the char u want instead if the gdi and nod soldier
|
No, that will not work on a start up spawner, especially the nuetral team start up spawner.
I'm afraid to say piotrkol1 that you are going to have to create a script that does "Commands->Set_Position(obj,NewPos);" where new position is declared as "Vector3 NewPos;", with NewPos defined already as the x,y,z ( NewPos.X = (whatever);NewPos.Y = (whatever);NewPos.Z = (whatever); ), then you would need to use the statement "Change_Character(sender,"mutant preset name here");, then grant them the weapon you want using this statement: "Commands->Give_Powerup(obj/sender/whatever,pow_weapon_name,true);"
You are going to have to get this script attached to the player when you want them to be spawned as nuetral.
Also, if you are going to have allot of people spawning as nuetral at the same time you are going to have to make new pos kinda complex, perhaps turn it into an array with it choosing the new pos randomly, so people dont spawn inside eachother..
[Updated on: Mon, 09 July 2007 04:18] Report message to a moderator
|
|
|
Re: Need help finding a script [message #271903 is a reply to message #271843] |
Mon, 09 July 2007 04:54 |
_SSnipe_
Messages: 4121 Registered: May 2007 Location: Riverside Southern Califo...
Karma: 0
|
General (4 Stars) |
|
|
well piotrkol1 this is just me but im guessing u have a diffrent location per map?
so reborn maybe can help make new locations per map>? im guessing
|
|
|
|
|
Re: Need help finding a script [message #271953 is a reply to message #271843] |
Mon, 09 July 2007 10:31 |
piotrkol1
Messages: 167 Registered: July 2005 Location: Milwaukee, Wisconsin
Karma: 0
|
Recruit |
|
|
Ok well I tried attaching the script - JFW_Zone_Character to a script zone but when you become nuetral and spawn in the zone, a messages pops up saying you have purchased a disabled unit "Innate" or whatever its called. Anyone know if this can be changed? The preset I was using is CnC_Nod_Mutant_0_Mutant. The same thing happened when I attached JFW_Change_Character_Powerup to the spawners. So anyone know how to fix it so the unit is not disabled? Or maybe I'm using wrong preset?
[Updated on: Mon, 09 July 2007 10:41] Report message to a moderator
|
|
|
|
|