Page 1 of 1

New JS-event: onCharDoubleClick

Posted: Sun Jan 22, 2006 8:54 pm
by Xuri
I'd like to see a new JS event added, for when a player doubleclicks a character. Adding a check for this event near the top of void handleCharDoubleClick() in cPlayerAction.cpp would give scripters the ability to override the mount/dismount-code, and would allow for custom paperdolls for anything from normal player characters to all kinds of NPCs.

The event could be named onCharDoubleClick, and would override the hardcoded stuff completely if a return false is provided in the script. With a return true, both script and code would run.

Posted: Mon Jan 23, 2006 4:37 am
by Xuri
I went ahead and did this one myself, will be committing it to CVS after ensuring that it works as it should, possibly after having added one or two more JS events while I'm at it =)