Help
Error line 25!!!
Barterode-Modifikation
Gepost 03 november 2013 - 03:56
Help
Error line 25!!!
Barterode-Modifikation
Gepost 03 november 2013 - 08:33
what is the error you get?
'cause for what I can see ( i don't have much experience) it looks like you forgot to add a unit with a specific name, and now it can't find the unit to let the script work
//// <BLOCK> //////////////////////////////////////////////////////////////////////////////////////////// l1 = Game::GetGameObjects("MTW"); // FAHRZEUGNAME muss einmalig sein auf der Map <--- is this the vehicle you want to attach the water supply? 'Cause now it's the police van if(l1.GetNumObjects() == 0) { Mission::PlayHint("Fahrzeug befindet sich nicht auf der Karte!"); // * } else { o1 = *l1.GetObject(0); Vehicle v(o1); v.SetSpeed(16.0f); // Wert anpassen ... v.SetMaxPassengers(2); // Wert anpassen ... v.SetMaxTransports(0); // Wert anpassen ... v.AssignCommand("ParkAtBase"); // Park-Kommando zuweisen v.EnableBlueLights(false); }
**NOTE**
I don't take any requests any more,except for ;
Red Watch (RCMP)
Gepost 03 november 2013 - 08:41
what is the error you get?
'cause for what I can see ( i don't have much experience) it looks like you forgot to add a unit with a specific name, and now it can't find the unit to let the script work//// <BLOCK> //////////////////////////////////////////////////////////////////////////////////////////// l1 = Game::GetGameObjects("MTW"); // FAHRZEUGNAME muss einmalig sein auf der Map <--- is this the vehicle you want to attach the water supply? 'Cause now it's the police van if(l1.GetNumObjects() == 0) { Mission::PlayHint("Fahrzeug befindet sich nicht auf der Karte!"); // * } else { o1 = *l1.GetObject(0); Vehicle v(o1); v.SetSpeed(16.0f); // Wert anpassen ... v.SetMaxPassengers(2); // Wert anpassen ... v.SetMaxTransports(0); // Wert anpassen ... v.AssignCommand("ParkAtBase"); // Park-Kommando zuweisen v.EnableBlueLights(false); }
managed to put in order the script, but I can not fix the final part for the vehicles have water supply!!!
Gepost 03 november 2013 - 08:45
Error
Gepost 03 november 2013 - 09:01
You have to change:
l1 = Game::GameObject("water_supply_main"); // FAHRZEUGNAME muss einmalig sein auf der Map
to this:
l1 = Game::GetGameObjects("water_supply_main"); // FAHRZEUGNAME muss einmalig sein auf der Map
Gepost 03 november 2013 - 09:29
You have to change:
l1 = Game::GameObject("water_supply_main"); // FAHRZEUGNAME muss einmalig sein auf der Mapto this:
l1 = Game::GetGameObjects("water_supply_main"); // FAHRZEUGNAME muss einmalig sein auf der Map
I've tried, but it gave error that the object has to be caught!!
Gepost 03 november 2013 - 10:18
Any objet with the name water_supply_main? It has to be min and max 1 time on the map.
And by the way, anyway you unblock your ! key? It's quite anoying for us to see that after every comment
Gepost 03 november 2013 - 10:47
Any objet with the name water_supply_main? It has to be min and max 1 time on the map.
And by the way, anyway you unblock your ! key? It's quite anoying for us to see that after every comment
yes I agree, but I can not play the water supply to the map and not the script! can not unlock!
Gepost 04 november 2013 - 02:07
I've tried, but it gave error that the object has to be caught!!
Got the same error?
Gepost 04 november 2013 - 01:15
Got the same error?
not have the same error, changes for this!!
Gepost 04 november 2013 - 02:02
It's because you didn't make the appropiate changes. Please reupload the script.
Gepost 04 november 2013 - 02:04
It's because you didn't make the appropiate changes. Please reupload the script.
I think I did all mundanças but it did not work!
Gepost 04 november 2013 - 02:17
I think I did all mundanças but it did not work!
Can you reupload the entire script?
Also, looking at the error, it seems like you wrote GameObjects instead of GetGameObjects.
But without the changed script and a logfile it's hard to tell.
Gepost 04 november 2013 - 02:22
Can you reupload the entire script?
Also, looking at the error, it seems like you wrote GameObjects instead of GetGameObjects.
But without the changed script and a logfile it's hard to tell.
you want the original file??
edited but does not appear to support the water!!
Gepost 05 november 2013 - 07:40
Game starts, but it appears the main water supply to the beginning of the game! Help
Emergency 4 →
Mods →
St. Cloud City ModStarted by HDMods , 04 jun 2013 hdmods, mod, fictitious, script |
|
|
||
Emergency 4 →
Modding Related Support →
Need Reference/Resource so I can ScriptStarted by Greglh , 13 dec 2012 scripting, script |
|
|
||
Emergency 4 →
Modding Related Support →
My newly created (cloned) officers are missing the mp5 rifle... they kneel,aim,and shoot but without the gun....Started by heyjoojoo , 11 nov 2012 missing, mp5, invisible, swap and 1 more... |
|
|
||
Emergency 4 →
Modding Related Support →
Is it possible to add a motorcade in a mod? I noticed there is a script called 'startmotorcade'..Started by heyjoojoo , 18 sep 2012 motorcade, script, presidential and 1 more... |
|
|
||
Emergency 4 →
Modding Related Support →
Firestation ScriptStarted by FDNY2352 , 25 aug 2012 Script |
|
|