Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Forum » Character Change after Spawn
Re: Character Change after Spawn [message #277266 is a reply to message #277211] Sun, 05 August 2007 09:31 Go to previous messageGo to previous message
reborn is currently offline  reborn
Messages: 3231
Registered: September 2004
Location: uk - london
Karma:
General (3 Stars)
What ssaow/ssgm are you using?


if (strstr(CurrMap,"C&C_Mars.mix")) {

//code to send message in-game stating that code is being called
char called[256];
sprintf(called,"This console message is telling you that the code is being called");

//declaring variables
//This variable is making a name for the location if the invisiable object, and therefore declaring it as "Vector3"
Vector3 invis;
//This variable is going to actually be the invis object, and is declaring it's data type as "gameobject *"
GameObject *Game_invis;

//Code to set what the x,y,z of the invis object Vector3 is, this will then mean that
//refering to invis will contain all this information
invis.X= 0.0f;
invis.Y= 0.0f;
invis.Z= 0.0f;

//create an invisible object at the location known now as invis
Game_invis = Commands->Create_Object("Invisible_Object",invis);
//attach the script to the object to change the spawn char



[Updated on: Sun, 05 August 2007 09:31]

Report message to a moderator

 
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: First Turret Model
Next Topic: engy bots wont repair
Goto Forum:
  


Current Time: Sat Dec 21 18:23:01 MST 2024

Total time taken to generate the page: 0.00792 seconds