Hello,
The problem I've got is - I'm trying to make retro pvp system in TFS 1.2, but due to lack of documentation I struggle to understand few functions in TFS. If anyone could help with my problem and answer several questions - I would really appreciate that.
In TFS 1.2 yellow skull is not showing at all, so after long time of trying (adding, compiling, deleting, adding...), only thing I have is that when player1 attacks player2, player1 gets white skull, but player2 already sees the other one with yellow skull (which is not wanted result) and then, when player2 attacks player1, they both see that player2 has yellow skull (which is good).
I have no idea how I did, that player1 has white skull and only player2 sees him with yellow one. Does anyone know what function does that?
Could anyone tell me what this function does:
And also could you confirm, if I am correct that:
This one returns skull of player I targeted.
And this one returns my skull.
Right?
I think my programming skills are medium and I really love it, so I if I catch anything from this it will be big practise for me, but TFS is such a big application with so many objects, functions and stuff, that it's hard for me to understand everything from just the source at this point.
I hope this post is understandable. I guess I will have more questions soon.
Thank you,
The problem I've got is - I'm trying to make retro pvp system in TFS 1.2, but due to lack of documentation I struggle to understand few functions in TFS. If anyone could help with my problem and answer several questions - I would really appreciate that.
In TFS 1.2 yellow skull is not showing at all, so after long time of trying (adding, compiling, deleting, adding...), only thing I have is that when player1 attacks player2, player1 gets white skull, but player2 already sees the other one with yellow skull (which is not wanted result) and then, when player2 attacks player1, they both see that player2 has yellow skull (which is good).
I have no idea how I did, that player1 has white skull and only player2 sees him with yellow one. Does anyone know what function does that?
Could anyone tell me what this function does:
Code:
targetPlayer->sendCreatureSkull(this);
And also could you confirm, if I am correct that:
Code:
targetPlayer->getSkull();
Code:
getSkull();
Right?
I think my programming skills are medium and I really love it, so I if I catch anything from this it will be big practise for me, but TFS is such a big application with so many objects, functions and stuff, that it's hard for me to understand everything from just the source at this point.
I hope this post is understandable. I guess I will have more questions soon.
Thank you,