From 52193ea0c71cca270f4e2c2bc514fbac994e36c2 Mon Sep 17 00:00:00 2001 From: "False.Genesis" Date: Sun, 1 Sep 2019 22:44:21 +0200 Subject: [PATCH] Updated entity scripting (markdown) --- entity-scripting.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/entity-scripting.md b/entity-scripting.md index bfc4ef2..2e7d52a 100644 --- a/entity-scripting.md +++ b/entity-scripting.md @@ -84,7 +84,7 @@ If the function returns false, damage is not applied. Called when a message is received (sent via `entity_msg(me, message, value)`. This function is substantially different in OSE and previous versions: * Pre-OSE: Message is a string, value may can be a number, entity, or node. Due to how entity pointers are encoded in this version, value will always be a number, so message sender and receiver need to agree on how to interpret value, otherwise it'll crash. Communication is unidirectional only, i.e. if you want to answer, you'll have to send a message back. -* OSE: Message handling is variadic, i.e. `msg(me, ...)` receives all parameters from the corresponding `entity_msg(me, ...) call. Values returned from `msg()` are forwarded to and returned by `entity_msg()`. This allows for easy bi-directional communication. +* OSE: Message handling is variadic, i.e. `msg(me, ...)` receives all parameters from the corresponding `entity_msg(me, ...)` call. Values returned from `msg()` are forwarded to and returned by `entity_msg()`. This allows for easy bi-directional communication. ## Special interface functions