Spawnable items?

Ask questions, discuss ideas, get answers
Gregb1955
Posts: 28
Joined: Thu May 15, 2014 2:02 am
Location: Queensland Australia

Spawnable items?

Post 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....
User avatar
Swaffy
Posts: 1715
Joined: Sun Aug 29, 2010 9:25 pm
Location: Cibolo, Texas

Re: Spawnable items?

Post 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.
(Forum Thread|Download) Swaffy'sMod v0.34 | Download link to come Soon™
User avatar
Apache Thunder
Posts: 1210
Joined: Mon Oct 19, 2009 2:48 am
Location: Levelland Texas, USA
Contact:

Re: Spawnable items?

Post 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.
ImageImageImage
I have cameras in your head!
Gregb1955
Posts: 28
Joined: Thu May 15, 2014 2:02 am
Location: Queensland Australia

Re: Spawnable items?

Post by Gregb1955 »

Thanks, the key words...Player Controlled Objects.
I understand now
Thanks for clearing that up.
freddy
Posts: 1267
Joined: Sun Oct 18, 2009 4:58 pm

Re: Spawnable items?

Post 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.
User avatar
Swaffy
Posts: 1715
Joined: Sun Aug 29, 2010 9:25 pm
Location: Cibolo, Texas

Re: Spawnable items?

Post 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
(Forum Thread|Download) Swaffy'sMod v0.34 | Download link to come Soon™
User avatar
Vilespring
Posts: 740
Joined: Sat Nov 24, 2012 5:47 am
Location: Somewere in the United States

Re: Spawnable items?

Post by Vilespring »

Does this mean I can attach kits to vehicles? Like supply trucks?
A picture is worth a thousand words, but takes up three thousand times the memory.

Area 51: http://battlefieldarea51mod.weebly.com/

Image
"I didn't steal your pizza"
User avatar
Swaffy
Posts: 1715
Joined: Sun Aug 29, 2010 9:25 pm
Location: Cibolo, Texas

Re: Spawnable items?

Post 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.
(Forum Thread|Download) Swaffy'sMod v0.34 | Download link to come Soon™
freddy
Posts: 1267
Joined: Sun Oct 18, 2009 4:58 pm

Re: Spawnable items?

Post 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:
User avatar
Vilespring
Posts: 740
Joined: Sat Nov 24, 2012 5:47 am
Location: Somewere in the United States

Re: Spawnable items?

Post 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.
A picture is worth a thousand words, but takes up three thousand times the memory.

Area 51: http://battlefieldarea51mod.weebly.com/

Image
"I didn't steal your pizza"
Post Reply