[SSM] Changing the objects spawned by Global Object Spawners

Lots of cool and useful tips to mod either serverside or clientside

Changing the objects spawned by Global Object Spawners

Postby Pigauchiu » Thu Jan 31, 2013 2:03 pm

not sure if anyone mentioned it. simple coding and will become handy when you run out of map-side object spawners. 8-) here's an example using ShokakuZeroSpawner, sherman and panzeriv:

Code: Select all
ObjectTemplate.Active ShokakuZeroSpawner
ObjectTemplate.setObjectTemplate 4 sherman
ObjectTemplate.setObjectTemplate 3 panzeriv
ObjectTemplate.MinSpawnDelay 40
ObjectTemplate.MaxSpawnDelay 80
ObjectTemplate.SpawnDelayAtStart 0
ObjectTemplate.TimeToLive 45
ObjectTemplate.Distance 40
ObjectTemplate.DamageWhenLost 10
ObjectTemplate.holdObject 0

Code: Select all
Object.create ShokakuZeroSpawner
Object.absolutePosition 1429.66/44.0341/1601.95
Object.rotation 89.856/0.000261513/1.52588e-005
Object.setTeam 4

Object.create ShokakuZeroSpawner
Object.absolutePosition 666.875/49.5898/693.912
Object.rotation -91.0668/-0.138256/1.52588e-005
Object.setTeam 3

the limitation until here is, these spawners might only be used for uncapturable bases only, obviously because the game doesnt know what teams 3 and 4 are, and remember that dont attach any osid of flags when placing these spawners.

to remove this limitation, if really necessary, open shokaku/objects.con and edit like this:
Code: Select all
ObjectTemplate.create ObjectSpawner ShokakuZeroSpawner
ObjectTemplate.setObjectTemplate 3 Zero
ObjectTemplate.holdObject 1
ObjectTemplate.minSpawnDelay 20
ObjectTemplate.maxSpawnDelay 40
ObjectTemplate.TimeToLive 120
ObjectTemplate.Distance 200
ObjectTemplate.spawnOffset 0/0/0
ObjectTemplate.team 3

so that 1 and 2 are spared for defined team. 8-)

the last concern of this topic is: how do I edit the basic toturial? one of the pages states that the SetObjectTemplate property is unchangable but now it needs update.
Posts: 31
Joined: Fri Mar 30, 2012 1:00 pm

Return to General Modding Tutorials

Who is online

Users browsing this forum: No registered users and 11 guests