craig141
-
Posts
7 -
Joined
-
Last visited
Content Type
Profiles
Forums
Calendar
Tutorials
Downloads
Gallery
Posts posted by craig141
-
-
The reason for the crash is the USCG Unit Prototype and Model files are missing
-
No it works like that, I tried it.
-
Ok try this I think I got it all
-
You just need to add this
else if (ChildID == 11)
{
Person p = Game::CreatePerson(OBJ_SHARPSHOOTER, UNNAMED);
p.SetEquipment(EQUIP_RIFLE);
}the ChildID and OBJ_SHARPSHOOTER is whatever you got
-
You got
if (v.GetVehicleType() == OBJ_EMS)
{
for(int i=0; i < gate08a.GetNumObjects(); i++)
{
GameObject *gate = gate08a.GetObject(i);
Actor *vogate = vogate08a.GetActor(i);
Vector GateSnd = gate->GetPosition();
if (gate->GetUserData() == 0)
{
gate->SetUserData(1);
gate->SetAnimation(ANI_OPEN);
vogate->SetVirtualObjectTerrain(VOSET_ROAD);
Audio::PlaySample3D(SND_GATE, GateSnd);
} else
{
gate->SetUserData(0);
gate->SetAnimation(ANI_CLOSE);
vogate->SetVirtualObjectTerrain(VOSET_BARRICADE);
Audio::PlaySample3D(SND_GATE, GateSnd);
}
}
}When you need to have
if (StrCompare(v.GetPrototypeFileName(), OBJ_EMS) ==0)
{
for(int i=0; i < gate08a.GetNumObjects(); i++)
{
GameObject *gate = gate08a.GetObject(i);
Actor *vogate = vogate08a.GetActor(i);
Vector GateSnd = gate->GetPosition();
if (gate->GetUserData() == 0)
{
gate->SetUserData(1);
gate->SetAnimation(ANI_OPEN);
vogate->SetVirtualObjectTerrain(VOSET_ROAD);
Audio::PlaySample3D(SND_GATE, GateSnd);
} else
{
gate->SetUserData(0);
gate->SetAnimation(ANI_CLOSE);
vogate->SetVirtualObjectTerrain(VOSET_BARRICADE);
Audio::PlaySample3D(SND_GATE, GateSnd);
}
}
}I fixed it for you, see attachment
-
You can do what I did and edit the terrain.xml file the the Main games Specs folder look for <terrain name="TLRed"> and edit the values to 0.0 that works for me.
Spawn dogleader
in Alteration Help
Posted
Just add this code to the LAFireStationStart.script
* Put the code in with the K9 Code so it looks like this