User Tools

Site Tools


4rpl:commands:sendmversemsg

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
4rpl:commands:sendmversemsg [2021/06/15 10:35] – add links Karsten754rpl:commands:sendmversemsg [2024/10/06 09:37] (current) kalli
Line 17: Line 17:
 42 ->table{"value"} 42 ->table{"value"}
 SendMVerseMsg("NetMessage" <-table) SendMVerseMsg("NetMessage" <-table)
 +</code>
 +
 +<code 4rpl>
 +# Many 4rpl custom unit actions are not automatically synced in mverse. 
 +# For stationary units a possible solution is to send an mverse message 
 +# so that the other player sessions can create a clone of the unit.
 +
 +<-unitType <-unitPos <-unitSettings createunit 0 SetMVerseCreatesUnitGhost
 +"MVMSG_CreateUnit" <-unitType <-unitPos <-unitSettings 3 listN sendmversemsg
 +
 +:once
 +RegisterForMsg("MVMSG_CreateUnit" "MVMSG_CreateUnit_Function")
 +
 +:MVMSG_CreateUnit_Function
 +<-_DATA[0] <-_DATA[1] <-_DATA[2] createunit 0 SetMVerseCreatesUnitGhost
 </code> </code>
  
4rpl/commands/sendmversemsg.1623767703.txt.gz · Last modified: 2021/06/15 10:35 by Karsten75