Same datablock with different shapefiles.
by Santosh Pillai · in Technical Issues · 05/15/2008 (11:56 pm) · 4 replies
I am making a crowd which share the same custom datablock. Ofcourse, different people in the crowd, hence different shapefiles. How can I keep the same datablock but different sapefiles for each person in the crowd?
#2
05/16/2008 (2:43 am)
So that means if there are 50 different characters, I will have to mkae 50 different datablocks for each character?
#3
05/16/2008 (3:24 am)
You can of course make changes to Shapebase to allow for more shapes and Randomize which File to use. But I personally would stick to what Mquaker says.
#4
05/16/2008 (4:57 am)
Ok cool thanks guys
Torque Owner Mquaker
Mquaker Studio
This parent datablock
datablock PlayerData(DefaultPlayerData) { shapefile = "~/data/shapes/players/player.dts"; ... ... }Create Child datablock
datablock PlayerData(PlayerTypeA : DefaultPlayerData) { shapefile = "~/data/shapes/players/PlayerTypeA.dts"; }