level load [message #446821] |
Mon, 09 May 2011 09:34 |
robbyke
Messages: 348 Registered: September 2010 Location: Belgium
Karma: 0
|
Recruit |
|
|
well i try to load this but it crashes somewhere but i dont get why
Toggle Spoiler
GenericSLNode *x = BaseGameObjList->HeadNode;
while(x)
{
GameObject *o = (GameObject *)x->NodeData;
if (o && As_ScriptableGameObj(o)&&!(Commands->Is_A_Star(o)))
{
const char *Preset = Commands->Get_Preset_Name(o);
if (isin(Preset,"mp_")) {
int Team = 0;
if (isin(Preset,"_GDI_"))
{
Team = 1;
}
GameObject *BaseZONE = Commands->Create_Object("Invisible_Object",Commands->Get_Position(o));
Commands->Disable_Physical_Collisions(BaseZONE);
Commands->Set_Player_Type(BaseZONE,Team);
Set_Skin(BaseZONE,"Blamo");
Commands->Set_Shield_Type(BaseZONE,"Blamo");
Attach_Script_Once(BaseZONE,"KB_Zone","");
}
}
x = x->NodeNext;
}
error is found there is something wrong with my dumb script i attach
Owner of kambot TT server
kambot.freeforums.org
[Updated on: Mon, 09 May 2011 12:12] Report message to a moderator
|
|
|