Zum Inhalt wechseln


Foto

Unit info problem

script info unit

  • Please log in to reply
3 replies to this topic

#1 cops

cops

    Assistant Chief

  • Members
  • 1.666 Beiträge:
  • Gender:Male

Geschrieben 06 September 2011 - 05:26

HI everyone,

I was trying several times to get new personal in my police car, but I won't work

Does anyone see the problem?

Posted Image
<unit id="TOURAN4-11">
<campaign>
  <missions value="1 2 3 4 13 15 9 8 5 17 12 14 7 19 10 6 18 16 11 20">
   <prototype name="mod:Prototypes/Vehicles/03Politie/touran4-11.e4p" />
   <price value="150" />
   <speed value="120" />
   <space value="2" />
   <loadspace value="2" />
   <personnel>
	<unit id="POLITIENORMAAL">
 	<defaultcount value="1" />
	<unit id="PROFILER" />
 	<defaultcount value="0" />
	<unit id="POLITIEKOGELVEST" />
 	<defaultcount value="0" />
	<unit id="POLITIE_MET_JAS" />
 	<defaultcount value="0" />
	<unit id="POLITIEMETVERKEERSJAS" />
 	<defaultcount value="1" />
	</unit>
   </personnel>
   <equipment />
  </missions>
</campaign>

<freeplay>
  <missions value="1 2 3 4 13 15 9 8 5 17 12 14 7 19 10 6 18 16 11 20 22">
   <prototype name="mod:Prototypes/Vehicles/03Politie/touran4-11.e4p" />
   <price value="150" />
   <speed value="120" />
   <space value="2" />
   <loadspace value="2" />
   <personnel>
	<unit id="POLITIENORMAAL">
 	<defaultcount value="1" />
	<unit id="PROFILER" />
 	<defaultcount value="0" />
	<unit id="POLITIEKOGELVEST" />
 	<defaultcount value="0" />
	<unit id="POLITIE_MET_JAS" />
 	<defaultcount value="0" />
	<unit id="POLITIEMETVERKEERSJAS" />
 	<defaultcount value="1" />
	</unit>
   </personnel>
   <equipment />
  </missions>
</freeplay> 
</unit>

I tyed with _ between the words but that doesn't matter

Or do I nee to call them like I called them in the editor?

QHVZAKw.png

 

**NOTE**

I don't take any requests any more,except for ;

Red Watch (RCMP)


#2 MikeyPI

MikeyPI

    Heil kitler

  • Moderator
  • 667.284 Beiträge:
  • Gender:Male
  • Location:<Undisclosed>
  • Interests:Drinking booze, guns, and cars, when combined it can be really entertaining=)

Geschrieben 06 September 2011 - 06:13

the term you used in the editor name of the file is what you must use if the proto for the cop was say "PIG01" that is what you'll have to reference every time you use them, the la/ny mods use "constant characters" for this very reason. It makes it easier to associate proto filenames as required, the Lang xml's display what the user sees but everything else looks for the proto filename.

Lazy Moderator - Will warn when agro >)
FLM.jpg
2z69r10.jpg
Executive Director, EMP Internment Camps

 


#3 cops

cops

    Assistant Chief

  • Members
  • 1.666 Beiträge:
  • Gender:Male

Geschrieben 06 September 2011 - 10:18

I saw something weird I guess when I opened the model file of a police officer

Posted Image

QHVZAKw.png

 

**NOTE**

I don't take any requests any more,except for ;

Red Watch (RCMP)


#4 MikeyPI

MikeyPI

    Heil kitler

  • Moderator
  • 667.284 Beiträge:
  • Gender:Male
  • Location:<Undisclosed>
  • Interests:Drinking booze, guns, and cars, when combined it can be really entertaining=)

Geschrieben 06 September 2011 - 10:30

I'd have named em politie_01.. the game does have some odd associations you can inadvertently... but as long as you do NOT mod people files other than the texture name/tag via notepad they tend to work fine.

Lazy Moderator - Will warn when agro >)
FLM.jpg
2z69r10.jpg
Executive Director, EMP Internment Camps

 






Also tagged with one or more of these keywords: script, info, unit