Help
Error line 25!!!
Barterode-Modifikation
Posted 03 November 2013 - 03:56 PM
Help
Error line 25!!!
Barterode-Modifikation
Posted 03 November 2013 - 08:33 PM
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)
Posted 03 November 2013 - 08:41 PM
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!!!
Posted 03 November 2013 - 08:45 PM
Error
Posted 03 November 2013 - 09:01 PM
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
Posted 03 November 2013 - 09:29 PM
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!!
Posted 03 November 2013 - 10:18 PM
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
Posted 03 November 2013 - 10:47 PM
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!
Posted 04 November 2013 - 02:07 AM
I've tried, but it gave error that the object has to be caught!!
Got the same error?
Posted 04 November 2013 - 01:15 PM
Got the same error?
not have the same error, changes for this!!
Posted 04 November 2013 - 02:02 PM
It's because you didn't make the appropiate changes. Please reupload the script.
Posted 04 November 2013 - 02:04 PM
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!
Posted 04 November 2013 - 02:17 PM
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.
Posted 04 November 2013 - 02:22 PM
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!!
Posted 05 November 2013 - 07:40 PM
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 |
|
|