Author Topic: Sharing Datablocks?  (Read 1818 times)

i had a theory
is it possible, in order to lowerlag or whatever, to use a datablock in one file in another
like lets say you make a new gun but you wanted it to make the same sound as the regular pistol
is it possible to set the gun to load the datablock for the audio from the pistol and not make a new one itself

Couldn't you make it a subclass or a child or whatever the hell you do to Datablocks and just override what you need to?

I saw it done in 0002 scripts.

i mean jsut use the datablock from another weapon so it can have the same sound and use less space

Badspot

  • Administrator
The magic carpet already does this (uses the jeep explosion)

look ate gun script and look at datablock name for th sound and make that you fire sound

The magic carpet already does this (uses the jeep explosion)
thank you
*topic in a semi locked state in which it is supposed to be locked but i didnt make this on my alt so i actually cant lock it*

can the data block be shared with an item that is not select?
ie i were to make it so you could throw a fish and it would use the spearfire datablock for when its thrown but you haven selected spear to be loaded in the server

No unfortunatley not.