How do I call this lua function from javascript?

are_player_ids_hostile is not “whitelisted” in the stonehearth/manifest.json and therefore (likely) not available for calling via call_obj. Not sure if a mixinto in the manifest would help here. I’d go with a self-made method callback and just radiant.call.

See also Radiant.call versus radiant.call_obj?

3 Likes