Players, status effects, CallScriptedEntity

C

Chipppy

Guest
Okay, so I need to send a status effect after interacting with an NPC. Sort of like a doctor or something. This is an NPC to Player interaction. Right now I'm trying

Code:

world.callScriptedEntity( patient, "status.addEphemeralEffect", { doctord, 30} )
where patient is the player's id and doctord is the name of the status effect.

The error I'm getting back is:
Entity -65536 does not exist or is not a local master scripted entity

Which makes sense, I understand players don't have...

Players, status effects, CallScriptedEntity
 
   
   
   
Top