SphereCommunity
TYPEDEF with t_multi - Printable Version

+- SphereCommunity (https://forum.spherecommunity.net)
+-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d)
+--- Forum: Script Help (/Forum-Script-Help)
+--- Thread: TYPEDEF with t_multi (/Thread-TYPEDEF-with-t-multi)



TYPEDEF with t_multi - hctez - 08-03-2012 05:40 AM

Hi im trying to add a TAG when a house is placed, like this:

Code:
[MULTIDEF 096]
DEFNAME=i_multi_house_patio_marble
Name=Large Marble Patio House
TYPE=T_MULTI
VALUE=192000
CATEGORY=Multis
SUBSECTION=Houses
DESCRIPTION=Large Marble Patio House
MULTIREGION=-7,-7,7,7
COMPONENT=i_door_metal, -4, 3, 4
COMPONENT=0677, -3, 3, 4
COMPONENT=i_sign_brass_2, 0, 7, 0

ON=@CREATE
TAG.SOME=<SRC.UID>

This works perfect, but if i do this:

Code:
[TYPEDEF t_multi]
ON=@CREATE
TAG.SOME=<SRC.UID>

It doesn't work

It's not a big deal because i can put the on=@create under every house script but i would like to know why the typedef isn't working

Thanks


RE: TYPEDEF with t_multi - darksun84 - 08-03-2012 05:59 AM

@Create never trigger on typedef if i am correct.

But anyway, when you place a multi , the owner/placer's UID is automatically stored in MORE1 of the multi


RE: TYPEDEF with t_multi - hctez - 08-03-2012 06:09 AM

Thanks that's really usefull