Howto:Transmit properties over MP: Difference between revisions

Jump to navigation Jump to search
→‎-set.xml: slightly clearer
(Clarified the difference between mp_broadcast and ordinary MP enabled properties. It is not like one replaces the other unconditionally.)
(→‎-set.xml: slightly clearer)
Line 26: Line 26:
'''Note:''' true and false are synonyms from 1 and 0, so in those cases (boolean properties) an integer should be used. Also note that each type is seperately numbered; you can have an int n="0" besided a float n="0".
'''Note:''' true and false are synonyms from 1 and 0, so in those cases (boolean properties) an integer should be used. Also note that each type is seperately numbered; you can have an int n="0" besided a float n="0".


The value behind alias= is the (local) path to the property that has to be transmitted. Make sure that the local property has the same type as the generic MP enabled one.
The value behind alias= is the (local) path to the property that has to be transmitted. Make sure that the local property has the same type as the generic MP enabled one (note that bools are automatically converted to integers so you can map an MP enabled int to a local bool). It is important to remember to not explicitly define the property type in an alias property.


== In the 3d model XML file ==
== In the 3d model XML file ==
17

edits

Navigation menu