cPlayer function
#1
So, I'm updating a plugin called: Battle of Minecraft.

The documentation doesn't really explain things clearly.

I'm asking about the AddEntityEffect function for cPlayer.
The problem is that I have put the thing correctly, but I don't know its parameters.
On the documentation it says, EffectType and then cEntityEffect. I don't know what EffectType is.

Can anyone help? Thanks.
Reply
Thanks given by:
#2
An effectType is one of the constants from cEntityEffect. There listed here: http://mc-server.xoft.cz/LuaAPI/cEntityEffect.html
Reply
Thanks given by:
#3
Another problem could be that the current API doesn't seem to allow creating the cEntityEffect class from Lua, so you can't really use the AddEntityEffect function. I guess we'll need to change this API somewhat. I think it would be better to leave out the cEntityEffect class from it, and just pass all the needed info to AddEntityEffect() directly as parameters.
Reply
Thanks given by:
#4
The required parameter is EffectType. This is no documentation for EffectType.

[u]EDIT:[/uI just saw what you said. Smile
Thanks! I'll start testing it.
Reply
Thanks given by:




Users browsing this thread: 2 Guest(s)