Page 1 of 2

Spawnable items?

Posted: Fri Sep 12, 2014 10:26 am
by Gregb1955
I would like to know if objects such as a trench or boxes or drums or even a sniper tree could be made spawnable using BC42.
I can place these objects above, using BC42, as a spawnable item, but they never show up in a game.
Ammoboxes, weapons, vehicles, medilockers and other objects can. I notice that they all have an interaction with the player in some way.
Is this what defines a spawnable object?
Thanks....

Re: Spawnable items?

Posted: Fri Sep 12, 2014 5:31 pm
by Swaffy
Those are called StaticObjects. When they are created they stay on the map forever and normally do not move.

PCO (Player Controlled Object) is typically a vehicle, but have been altered to make stuff such as bombs for bomb drops, spawning landmines, interactive buildings, destructible objects, etc.

Re: Spawnable items?

Posted: Sat Sep 13, 2014 1:06 am
by Apache Thunder
As a server side mod this will never work. However if that's not the issue, then you need to create PlayerControlObjects versions of them and use object spawners to spawn them. That is, if you had the intent of having them spawn on demand mid game.

If they are normal objects that don't do anything, then placing them in BC42 should work. But don't use object spawners to place them. They should be placed the same way as other static objects if you are treating them as such.

Re: Spawnable items?

Posted: Sat Sep 13, 2014 8:56 am
by Gregb1955
Thanks, the key words...Player Controlled Objects.
I understand now
Thanks for clearing that up.

Re: Spawnable items?

Posted: Sat Sep 13, 2014 11:37 am
by freddy
A list of Player Controlled Objects you can spawn
Iced Earth wrote: Stationary Weapons:
stationary_browning
stationary_mg42

Air:
Aichival-T
Aichival-TRearGunControl
AichiVal
AichiValRearGunControl
B17
B17_PCO1
B17_PCO2
Bf109
Corsair
Ilyushin
Ilyushin_PCO1
Mustang
SBD-T
SBD-T_PCO1
SBD
SBD_PCO1
Spitfire
Stuka
StukaRearGunControl
Yak9
Zero

Land:
AA_allies
BlackMedal
BlackMedalPassengerPCO
Chi-ha
Chi-ha_Browning_PCO1
Defgun
flak38
Hanomag
Hanomag_MG42_PCO1
Hanomag_Passanger_PCO2
Hanomag_Passanger_PCO3
Hanomag_Passanger_PCO4
Hanomag_Passanger_PCO5
Ho-Ha
HoHa_MG42_PCO1
HoHa_MG42_PCO2
HoHa_Passanger_PCO2
HoHa_Passanger_PCO3
HoHa_Passanger_PCO4
Katyusha
Katyusha_PCO1
Kettenkrad
KettenKrad_MG42_PCO1
Kubelwagen
KubelwagenPassangerSeat
Lynx
LynxPassengerPCO
M10
M3A1
M3A1Browning_PCO1
M3A1_Passanger_PCO2
M3A1_Passanger_PCO3
M3A1_Passanger_PCO4
M3A1_Passanger_PCO5
PanzerIV
PanzerIV_Browning_PCO1
Priest
Priest_Gunner_PCO1
Sexton
Sherman
shermanBrowning_PCO1
T34-85
T34-85MG42_PCO1
T34
Tiger
Wespe
Wespe_Gunner_PCO1
Willy
WillyPassengerPCO

Sea:
AA_Enterprise
Daihatsu
DaihatsuGunnerPCO
DaihatsuPassangerPCO3
DaihatsuPassangerPCO4
DaihatsuPassangerPCO5
DaihatsuPassangerPCO6
Elco80
Elco80_FrontGunnerPCO
Elco80Raft
PTRaftPassengerPCO2
Enterprise
Enterprise_AABattery1
Enterprise_AABattery2
Enterprise_AABattery3
Enterprise_AABattery4
Fletcher
Fletcher_Back_Canons_PCO
FletcherDeckBrowningPCO
Gato
Hatsuzuki
HatsuzukiRearPCO
HatsuzukiDeckMG42PCO
Lcvp
Lcvp_GunnerPCO
LcvpPassangerPCO3
LcvpPassangerPCO4
LcvpPassangerPCO5
LcvpPassangerPCO6
PrinceOW
PrinceOW_SternCannonTower
PrinceOW_LeftAABattery
PrinceOW_RightAABattery
Shokaku
ShokakuAABattery1
ShokakuAABattery2
ShokakuAABattery3
ShokakuAABattery4
Sub7c
Type38
Type38_FrontGunnerPCO
Type38Raft
Type38RaftPassengerPCO2
Yamato
YamatoRearPCO
YamatoLeftPCO
YamatoRightPCO

*** MAP SPECIFIC ONLY! ***

Battle of Britain:
Britain_Factory
Clacton_RadarTower
East_Harwick_RadarTower
Felixstowe_RadarTower
Ju88A
Ju88A_NoseGunner_PCO
Ju88A_RearGunner_PCO
Ju88A_BellyGunner_PCO
Factory_Objective
RadarTower
West_Harwick_RadarTower

Liberation of Caen:
CDNRaft
CDNRaftPassengerPCO2
Pak40
ParatrooperSpawnObject

*Not all map-based PCO's tested.

Re: Spawnable items?

Posted: Sat Sep 13, 2014 4:38 pm
by Swaffy
Actually, you can also add weapon kits to Object Spawners. That I forgot to add. For example:

ObjectSpawnsTemplates.con (in your map)
  • ObjectTemplate.create ObjectSpawner spawnkit_ger_sg44zf4
    ObjectTemplate.setObjectTemplate 2 kit_ger_sg44zf4
    ObjectTemplate.setObjectTemplate 1 kit_ger_sg44zf4
    ObjectTemplate.MinSpawnDelay 1
    ObjectTemplate.MaxSpawnDelay 2
    ObjectTemplate.SpawnDelayAtStart 0
    ObjectTemplate.TimeToLive 30
    ObjectTemplate.Distance 10
    ObjectTemplate.DamageWhenLost 0
ObjectSpawns.con (in your map)
  • Object.create spawnkit_ger_sg44zf4
    Object.absolutePosition 1487.6/77.3704/1798.63
    Object.rotation 110/0/0
    Object.setOSId 1

Re: Spawnable items?

Posted: Sat Sep 13, 2014 6:18 pm
by Vilespring
Does this mean I can attach kits to vehicles? Like supply trucks?

Re: Spawnable items?

Posted: Sun Sep 14, 2014 1:03 am
by Swaffy
I'm not sure they will stay. In fact they might just go through a PCO and land on the ground. I think they only stay on an object if it is a StaticObject.

Re: Spawnable items?

Posted: Sun Sep 14, 2014 7:24 am
by freddy
Vilespring wrote:Does this mean I can attach kits to vehicles? Like supply trucks?
I´ve tried it on planes, the kits falls to the floor (or bottom of the sea in my case) if i used "holdobject" on the spawner it stays where it spawns but doesnt move with the plane :cry:

Re: Spawnable items?

Posted: Sun Sep 14, 2014 5:14 pm
by Vilespring
I guess the only solution is to make them drop with the fire button, making an array of kits around the truck's current position.