Zum Inhalt wechseln


Foto

Changing units


  • Please log in to reply
33 replies to this topic

#21 EM4life

EM4life

    Battalion Chief

  • Members
  • 570 Beiträge:
  • Gender:Male
  • Location:California, USA
  • Interests:Life.

Geschrieben 24 April 2010 - 07:25

The ambulance starts up fine, and I can use it, but when I return and raise the alarm, it only loads an EMT Strtcher, like the BLS Ambulance at FS 2.

Any help?

AePdW0F.png0CpxYIV.pngKO3tGvP.png


#22 Xplorer4x4

Xplorer4x4

    Assistant Chief

  • Members
  • 4.972 Beiträge:
  • Gender:Male
  • Location:Evansville,IN

Geschrieben 25 April 2010 - 12:45

Post your lafirestation and lafirestationstart scripts. Attach the entire scripts.

Please DO NOT PM ME for help. Ask your questions on the forum to help others with the same issue.

Enhance your LA Mod Freeplay Experience with LA Mod 2.0 4x4 Submod.
MyDfQUt.jpg

Los Angeles Mod v2.0 4x4 W00ds Map v1 - BETA RELEASE

If you appreciate my work, then please donate. Every little bit helps!
btn_donate_SM.gif


#23 EM4life

EM4life

    Battalion Chief

  • Members
  • 570 Beiträge:
  • Gender:Male
  • Location:California, USA
  • Interests:Life.

Geschrieben 25 April 2010 - 01:44

Post your lafirestation and lafirestationstart scripts. Attach the entire scripts.

It won't seem to let me attach such files...how can I fix this?

AePdW0F.png0CpxYIV.pngKO3tGvP.png


#24 EM4life

EM4life

    Battalion Chief

  • Members
  • 570 Beiträge:
  • Gender:Male
  • Location:California, USA
  • Interests:Life.

Geschrieben 07 Mai 2010 - 01:45

It won't seem to let me attach such files...how can I fix this?

Any help?

AePdW0F.png0CpxYIV.pngKO3tGvP.png


#25 Xplorer4x4

Xplorer4x4

    Assistant Chief

  • Members
  • 4.972 Beiträge:
  • Gender:Male
  • Location:Evansville,IN

Geschrieben 07 Mai 2010 - 09:18

rar them up, zip them up, or throw them on pastebin.com.

Please DO NOT PM ME for help. Ask your questions on the forum to help others with the same issue.

Enhance your LA Mod Freeplay Experience with LA Mod 2.0 4x4 Submod.
MyDfQUt.jpg

Los Angeles Mod v2.0 4x4 W00ds Map v1 - BETA RELEASE

If you appreciate my work, then please donate. Every little bit helps!
btn_donate_SM.gif


#26 EM4life

EM4life

    Battalion Chief

  • Members
  • 570 Beiträge:
  • Gender:Male
  • Location:California, USA
  • Interests:Life.

Geschrieben 08 Mai 2010 - 04:42

rar them up, zip them up, or throw them on pastebin.com.

I put them in a RAR but there's a glitch and I cant click the attach button...damit...

EDIT: Got it! They've been attached.

AePdW0F.png0CpxYIV.pngKO3tGvP.png


#27 Xplorer4x4

Xplorer4x4

    Assistant Chief

  • Members
  • 4.972 Beiträge:
  • Gender:Male
  • Location:Evansville,IN

Geschrieben 20 Mai 2010 - 05:05

A topic bump would have gotten my attention..no need for a pm.

GameObjectList l3;
 			Game::CollectObstaclesOnVirtualObject(VO_AMBULANCE01, l3, ACTOR_VEHICLE);
			if(l3.GetNumObjects() > 0)
			{
				Vehicle m = l3.GetObject(0);
				PersonList passengers = m.GetPassengers();
				if (passengers.GetNumPersons() == 0)
				{
					if(StrCompare(m.GetPrototypeFileName(), OBJ_AMBULANCE02LED) == 0)
					{
						m.PushActionExecuteCommand(ACTION_NEWLIST, DUMMY_CALLCREW, Caller, 7, false);
						//m.PushActionWait(ACTION_APPEND, 0.5f);
						//m.PushActionExecuteCommand(ACTION_APPEND, DUMMY_CALLCREW, Caller, 3, false);

					} else
					{
						m.PushActionExecuteCommand(ACTION_NEWLIST, DUMMY_CALLCREW, Caller, 1, false);
						m.PushActionWait(ACTION_APPEND, 0.5f);
						m.PushActionExecuteCommand(ACTION_APPEND, DUMMY_CALLCREW, Caller, 2, false);
					}
				}
			}
change that to
GameObjectList l3;
 			Game::CollectObstaclesOnVirtualObject(VO_AMBULANCE01, l3, ACTOR_VEHICLE);
			if(l3.GetNumObjects() > 0)
			{
				Vehicle m = l3.GetObject(0);
				PersonList passengers = m.GetPassengers();
				if (passengers.GetNumPersons() == 0)
				{
					if(StrCompare(m.GetPrototypeFileName(), OBJ_AMBULANCE02LED) == 0)
					{
						m.PushActionExecuteCommand(ACTION_NEWLIST, DUMMY_CALLCREW, Caller, 1, false);
						m.PushActionWait(ACTION_APPEND, 0.5f);
						m.PushActionExecuteCommand(ACTION_APPEND, DUMMY_CALLCREW, Caller, 2, false);

					} else
					{
						m.PushActionExecuteCommand(ACTION_NEWLIST, DUMMY_CALLCREW, Caller, 1, false);
						m.PushActionWait(ACTION_APPEND, 0.5f);
						m.PushActionExecuteCommand(ACTION_APPEND, DUMMY_CALLCREW, Caller, 2, false);
					}
				}
			}
And follow this pattern for the other ambulances. If that doesnt work compare it to the stock scripts, which i dont have access to on this pc, and see what they look like there. thats around line 200 of lafirestation.script.

Please DO NOT PM ME for help. Ask your questions on the forum to help others with the same issue.

Enhance your LA Mod Freeplay Experience with LA Mod 2.0 4x4 Submod.
MyDfQUt.jpg

Los Angeles Mod v2.0 4x4 W00ds Map v1 - BETA RELEASE

If you appreciate my work, then please donate. Every little bit helps!
btn_donate_SM.gif


#28 EM4life

EM4life

    Battalion Chief

  • Members
  • 570 Beiträge:
  • Gender:Male
  • Location:California, USA
  • Interests:Life.

Geschrieben 21 Mai 2010 - 02:46

A topic bump would have gotten my attention..no need for a pm.

GameObjectList l3;
			Game::CollectObstaclesOnVirtualObject(VO_AMBULANCE01, l3, ACTOR_VEHICLE);
			if(l3.GetNumObjects() > 0)
			{
				Vehicle m = l3.GetObject(0);
				PersonList passengers = m.GetPassengers();
				if (passengers.GetNumPersons() == 0)
				{
					if(StrCompare(m.GetPrototypeFileName(), OBJ_AMBULANCE02LED) == 0)
					{
						m.PushActionExecuteCommand(ACTION_NEWLIST, DUMMY_CALLCREW, Caller, 7, false);
						//m.PushActionWait(ACTION_APPEND, 0.5f);
						//m.PushActionExecuteCommand(ACTION_APPEND, DUMMY_CALLCREW, Caller, 3, false);

					} else
					{
						m.PushActionExecuteCommand(ACTION_NEWLIST, DUMMY_CALLCREW, Caller, 1, false);
						m.PushActionWait(ACTION_APPEND, 0.5f);
						m.PushActionExecuteCommand(ACTION_APPEND, DUMMY_CALLCREW, Caller, 2, false);
					}
				}
			}
change that to
GameObjectList l3;
			Game::CollectObstaclesOnVirtualObject(VO_AMBULANCE01, l3, ACTOR_VEHICLE);
			if(l3.GetNumObjects() > 0)
			{
				Vehicle m = l3.GetObject(0);
				PersonList passengers = m.GetPassengers();
				if (passengers.GetNumPersons() == 0)
				{
					if(StrCompare(m.GetPrototypeFileName(), OBJ_AMBULANCE02LED) == 0)
					{
						m.PushActionExecuteCommand(ACTION_NEWLIST, DUMMY_CALLCREW, Caller, 1, false);
						m.PushActionWait(ACTION_APPEND, 0.5f);
						m.PushActionExecuteCommand(ACTION_APPEND, DUMMY_CALLCREW, Caller, 2, false);

					} else
					{
						m.PushActionExecuteCommand(ACTION_NEWLIST, DUMMY_CALLCREW, Caller, 1, false);
						m.PushActionWait(ACTION_APPEND, 0.5f);
						m.PushActionExecuteCommand(ACTION_APPEND, DUMMY_CALLCREW, Caller, 2, false);
					}
				}
			}
And follow this pattern for the other ambulances. If that doesnt work compare it to the stock scripts, which i dont have access to on this pc, and see what they look like there. thats around line 200 of lafirestation.script.

Thanks, I'll coment if there was a change!

EDIT: It only staffs my ambulance with one paramedic...

AePdW0F.png0CpxYIV.pngKO3tGvP.png


#29 Xplorer4x4

Xplorer4x4

    Assistant Chief

  • Members
  • 4.972 Beiträge:
  • Gender:Male
  • Location:Evansville,IN

Geschrieben 21 Mai 2010 - 04:14

I'll try to check in to it more once my pc is up and running like monday or tuesday.

Please DO NOT PM ME for help. Ask your questions on the forum to help others with the same issue.

Enhance your LA Mod Freeplay Experience with LA Mod 2.0 4x4 Submod.
MyDfQUt.jpg

Los Angeles Mod v2.0 4x4 W00ds Map v1 - BETA RELEASE

If you appreciate my work, then please donate. Every little bit helps!
btn_donate_SM.gif


#30 EM4life

EM4life

    Battalion Chief

  • Members
  • 570 Beiträge:
  • Gender:Male
  • Location:California, USA
  • Interests:Life.

Geschrieben 22 Mai 2010 - 12:43

I'll try to check in to it more once my pc is up and running like monday or tuesday.

Alright, thanks.

AePdW0F.png0CpxYIV.pngKO3tGvP.png


#31 EM4life

EM4life

    Battalion Chief

  • Members
  • 570 Beiträge:
  • Gender:Male
  • Location:California, USA
  • Interests:Life.

Geschrieben 18 Juni 2010 - 08:51

Anyone else care to help?

AePdW0F.png0CpxYIV.pngKO3tGvP.png


#32 FortErieFireEli

FortErieFireEli

    Captain

  • Members
  • 238 Beiträge:
  • Gender:Male
  • Location:Behind you
  • Interests:<unknown>

Geschrieben 19 Juni 2010 - 06:54

I took a quick look. The problem I saw was
GameObjectList l3;
 			Game::CollectObstaclesOnVirtualObject(VO_AMBULANCE01, l3, ACTOR_VEHICLE);
			if(l3.GetNumObjects() > 0)
			{
				Vehicle m = l3.GetObject(0);
				PersonList passengers = m.GetPassengers();
				if (passengers.GetNumPersons() == 0)
				{
					if(StrCompare(m.GetPrototypeFileName(), OBJ_AMBULANCE02LED) == 0)
					{
						m.PushActionExecuteCommand(ACTION_NEWLIST, DUMMY_CALLCREW, Caller, 7, false);
						//m.PushActionWait(ACTION_APPEND, 0.5f);
						//m.PushActionExecuteCommand(ACTION_APPEND, DUMMY_CALLCREW, Caller, 3, false);

					} else
					{
						m.PushActionExecuteCommand(ACTION_NEWLIST, DUMMY_CALLCREW, Caller, 1, false);
						m.PushActionWait(ACTION_APPEND, 0.5f);
						m.PushActionExecuteCommand(ACTION_APPEND, DUMMY_CALLCREW, Caller, 2, false);
					}
				}
			}
needed to be changed to
GameObjectList l3;
 			Game::CollectObstaclesOnVirtualObject(VO_AMBULANCE01, l3, ACTOR_VEHICLE);
			if(l3.GetNumObjects() > 0)
			{
				Vehicle m = l3.GetObject(0);
				PersonList passengers = m.GetPassengers();
				if (passengers.GetNumPersons() == 0)
				{
					if(StrCompare(m.GetPrototypeFileName(), OBJ_AMBULANCE02LED) == 0)
					{
						m.PushActionExecuteCommand(ACTION_NEWLIST, DUMMY_CALLCREW, Caller, 1, false);
						m.PushActionWait(ACTION_APPEND, 0.5f);
						m.PushActionExecuteCommand(ACTION_APPEND, DUMMY_CALLCREW, Caller, 2, false);

					} else
					{
						m.PushActionExecuteCommand(ACTION_NEWLIST, DUMMY_CALLCREW, Caller, 1, false);
						m.PushActionWait(ACTION_APPEND, 0.5f);
						m.PushActionExecuteCommand(ACTION_APPEND, DUMMY_CALLCREW, Caller, 2, false);
					}
				}
			}

Find attached the new LAFireStation.script you need, with all changes made :)

#33 EM4life

EM4life

    Battalion Chief

  • Members
  • 570 Beiträge:
  • Gender:Male
  • Location:California, USA
  • Interests:Life.

Geschrieben 20 Juni 2010 - 05:38

It seems to be the exact same script as the one Xplorer made above you...though it may have the right changes, so I will try it out.

*2 minutes later*...Wow, you got it! It spawns a paramedic and a paramedic stretcher, thanks for the help.

AePdW0F.png0CpxYIV.pngKO3tGvP.png


#34 FortErieFireEli

FortErieFireEli

    Captain

  • Members
  • 238 Beiträge:
  • Gender:Male
  • Location:Behind you
  • Interests:<unknown>

Geschrieben 20 Juni 2010 - 08:53

It seems to be the exact same script as the one Xplorer made above you...though it may have the right changes, so I will try it out.

*2 minutes later*...Wow, you got it! It spawns a paramedic and a paramedic stretcher, thanks for the help.

Anytime :) Glad I could help :)