Blockland Forums > Modification Help
Datablock ids
(1/3) > >>
tyler0:
Ok so i noticed that %brick.getDatablock(); gives you an id for each brick. How does this system work? Can i use if for items/projectiles?
Kalphiter:
Yes.

A datablock is a class, but for networking purposes.
lordician:
Two VehicleSpawns should have the same id there if i am correct.
This is how you can let something recognise a certain datablock.
Kalphiter:
flyingJeepVehicle or something would be the datablock over all flying jeeps.
lordician:

--- Quote from: Kalphiter on June 06, 2011, 04:55:12 PM ---flyingJeepVehicle or something would be the datablock over all flying jeeps.

--- End quote ---
That isn't a datablock for a brick though. ;)
(Wait, what if one would change the datablock of a brick into flyingJeepVehicle? I think that isn't possible since there are different datablock types...)
Navigation
Message Index
Next page

Go to full version