Home   Help Search Login Register  

Author Topic: Script to display new objects in Xbox  (Read 3519 times)

0 Members and 1 Guest are viewing this topic.

Offline hoz

  • OFPEC Site
  • Administrator
  • *****
Script to display new objects in Xbox
« on: 09 Dec 2005, 15:48:52 »
I've been working on a mission to display all the new objects. I would like the script to display 2 rows of objects however I only get one long row of 74 houses. How would I  get 2 rows.  My thoughts are to split _e into 2.

Its early in the morning, bare with me

Code: [Select]

hint "Display the houses of the xbox"
_a = [(getpos pos1 select 0), (getpos pos1 select 1), (getpos pos1 select 2)]
_g = _a
_b = ["Land_benzina","Land_brana","Land_Panelak", "Land_KBud", "Land_Tovarna1", "Land_Hlidac_budka", "Land_Domek_sedy", "Land_Posed", "Land_domek_zluty", "Land_zluty_statek_in", "Land_domek_radnice", "Land_Panelak2", "Land_Panelak3", "Land_leseni4x", "Land_vysilac_FM", "Land_vysilac_FM2", "Land_radar", "Land_Javor01Posed" , "Land_invisible_house", "TableMapRes", "Fountain", "Land_kasna_new", "Land_domek01", "Land_domek02", "Land_domek03", "Land_domek04", "Land_domek05" , "Land_dum_podloubi", "Land_dum_podloubi02", "Land_dum_podloubi03", "Land_dum_podloubi03klaster" ,"Land_stodola", "Land_stodola2", "Land_stodola3", "Land_kostelin", "Land_zluty_statek", "Land_domek_kovarna", "Land_domek_rosa", "Land_domek_hospoda", "Land_domek_sedy_bez", "Land_domek_zluty_bez", "Land_domek_vilka", "Land_domek_ruina", "Land_domek_podhradi_1", "Land_dum_patr_nizky_prujezd", "Land_dum_patrovy01prujezd", "Land_dum_patrovy01", "Land_dum_patrovy01c", "Land_dum_patrovy01d", "Land_dum_patrovy02", "Land_dum_patrovy03", "Land_dum_patrovy04", "Land_dum_patrovy05", "Land_dum_patrovy06", "Land_skola",  "Land_ruiny_obvod_3", "Land_ruiny_obvod_kompl", "Land_ruiny_3_roh", "Land_ruiny_3_prasklina", "Land_ruiny_3_dvere", "Land_hangar_2", "Land_Chata6" , "Land_OrlHot", "Land_ZalChata", "Land_hasic_zbroj", "Land_brana02", "Land_brana02nodoor", "Land_leseni2x", "Land_pumpa", "Land_bouda_plech", "Land_aut_zast"]

_e = (count _b) - 1
_k = (_e / 2)

_d = 0

#loop
_f = _b select _d
_obj = _f createVehicle getpos pos1

pos1 setpos [(getpos pos1 select 0), (getpos pos1 select 1)+40, (getpos pos1 select 2)]


_d = _d + 1
? _d == _k : goto "round2"
;hint format["%1",_d]
~.01
goto "loop"

#round2

_f = _b select _d
_obj = _f createVehicle getpos pos1

pos1 setpos [(getpos pos1 select 0), (getpos pos1 select 1)+40, (getpos pos1 select 2)]

_d = _d + 1
? _d == _k : goto "end"
~.01
goto "loop"

#end


Xbox Rocks

Offline Triggerhappy

  • Contributing Member
  • **
  • Llama, it's what's for dinner.
Re:Script to display new objects in Xbox
« Reply #1 on: 09 Dec 2005, 23:41:02 »
Code: [Select]
#round2
pos1 setpos [(_a select 0) - 20,(_a select 1),0]
#loop2

_f = _b select _d
_obj = _f createVehicle getpos pos1

pos1 setpos [(getpos pos1 select 0), (getpos pos1 select 1)+40, (getpos pos1 select 2)]

_d = _d + 1
? _d == _k : goto "end"
~.01
goto "loop2"

#end

2 problems with your script:
1) you never told it to make a second line (you have to change the x values elase its keeps going along the y)
2) you made it loop back to the original

Offline Ornament

  • Members
  • *
  • I'm a llama!
Re: Script to display new objects in Xbox
« Reply #2 on: 20 Jun 2006, 23:34:14 »
Will this mean new objects like boats, planes etc. will be availalbe to get on AR from other people? The thing that has me interested in the PC version is all the extra content people seem to have.

Things I would like are battleships, harriers, controllable parachutes, hovercraft and being able to swim in water and not drown!!!

Any idea if we are likely to see any of this? I have no idea what scripting is personally and have little interest in doingh it myself, but its such a great game.

thanx,

Ornament?

Offline Ornament

  • Members
  • *
  • I'm a llama!
Re: Script to display new objects in Xbox
« Reply #3 on: 23 Jun 2006, 13:59:46 »
After looking at other threads, it seems the answer is no for this, shame :(

Offline hoz

  • OFPEC Site
  • Administrator
  • *****
Re: Script to display new objects in Xbox
« Reply #4 on: 23 Jun 2006, 17:12:00 »
Addons can be added if you have a modded xbox. This isn't available yet through the action replay method.
BEcuase there is very little interest in modding or scripting for the xbox, these things take alot longer. :)
Xbox Rocks