User Tools

Site Tools


4rpl:commands:registerformsg

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:registerformsg [2022/05/12 16:00] Karsten754rpl:commands:registerformsg [2025/02/14 14:57] (current) – external edit 127.0.0.1
Line 3: Line 3:
 <= [[4rpl:start#Messaging]]  <= [[4rpl:start#Messaging]] 
  
-====== RegisterforMsg ====== +====== RegisterForMSG ====== 
-RegisterforMsg(<-channel <-callbackFunction)+RegisterForMSG(<-channel <-callbackFunction)
  
 ===== Description ===== ===== Description =====
Line 14: Line 14:
 is invoked on the script. That var can have any type, it depends what type the sender sent.\\ is invoked on the script. That var can have any type, it depends what type the sender sent.\\
  
-Messages are registered by channel. So if you call RegisterForMsg more than once with the same channel, but different callbackFunctions, only one registration is performed.  Subsequent calls to register on the same channel will replace any previous registrations. Multiple scripts can register to a single channel, but a single script can only have one registration for a particular channel at one time.    +Messages are registered by channel. So if you call RegisterForMSG more than once with the same channel, but different callbackFunctions, only one registration is performed.  Subsequent calls to register on the same channel will replace any previous registrations. Multiple scripts can register to a single channel, but a single script can only have one registration for a particular channel at one time.    
  
 RegisterForMSG is persistent, so you only need to call it once. RegisterForMSG is persistent, so you only need to call it once.
Line 29: Line 29:
  
 === See also === === See also ===
- +  
-  * [[4rpl:commands:DeregisterForMsg]]+  * [[SendMSG]] 
 +  * [[4rpl:commands:DeregisterForMSG]]
  
 <=[[4rpl:start| Index]] <=[[4rpl:start| Index]]
  
4rpl/commands/registerformsg.1652371242.txt.gz · Last modified: 2025/02/14 14:56 (external edit)