Showing results 1 to 8 of 8
Search took 0.00 seconds.
Search: Posts Made By: HailTheMoons
Forum: General Authoring Discussion 07/24/18, 12:20 AM
Replies: 18
Views: 5,758
Posted By HailTheMoons
I'm gonna stick with the code below for know, and...

I'm gonna stick with the code below for know, and work on graphics outputs.

I am still interested on some full code exemples of ZO_Prehook from the pros. ;)
It's just that I don't want to be stuck...
Forum: General Authoring Discussion 07/24/18, 12:09 AM
Replies: 18
Views: 5,758
Posted By HailTheMoons
Yes but as SDPhantom said, "TogglePlayerWield()...

Yes but as SDPhantom said, "TogglePlayerWield() isn't run if the user clicks the game field to draw their weapons":o. So a second case must be checked : when the player draw his weapons with the...
Forum: General Authoring Discussion 07/23/18, 12:39 PM
Replies: 18
Views: 5,758
Posted By HailTheMoons
So if I do...

So if I do :
ZO_PreHook("ArePlayerWeaponsSheathed", myAddon.ToggleWeaponsSheathed())
it will trigger when ArePlayerWeaponsSheathed changes (and work even out of combat), and execute my function who...
Forum: General Authoring Discussion 07/22/18, 11:20 AM
Replies: 18
Views: 5,758
Posted By HailTheMoons
I did some researches but I still don't get when...

I did some researches but I still don't get when or how I call ZO_preHook...

Here is the prototype : function ZO_PreHook(objectTable, existingFunctionName, hookFunction)
I guess objectTable is the...
Forum: General Authoring Discussion 07/22/18, 09:31 AM
Replies: 18
Views: 5,758
Posted By HailTheMoons
I see :) Thanks a lot, I found my method very...

I see :)

Thanks a lot, I found my method very inefficient too.
Will modify my code later and see if I can make it works.
Forum: General Authoring Discussion 07/22/18, 07:47 AM
Replies: 18
Views: 5,758
Posted By HailTheMoons
Why would I want to use preHook instead of a...

Why would I want to use preHook instead of a regular d() ?

Here is my code atm :

myAddon = {}
myAddon.name = "myAddon"

function myAddon.Initialize()
myAddon.weaponSheathed =...
Forum: General Authoring Discussion 07/22/18, 05:02 AM
Replies: 18
Views: 5,758
Posted By HailTheMoons
Thanks a lot :) As it seems there is no event...

Thanks a lot :)

As it seems there is no event for it, I used the RegisterForUpdate() function instead of RegisterForEvent().
Gonna test it.
Forum: General Authoring Discussion 07/22/18, 03:44 AM
Replies: 18
Views: 5,758
Posted By HailTheMoons
Event for weapon drawn/sheathed ?

Hello everyone,

Today, as a trial, I wanted to display a message in the chat when I sheath or draw weapons.
Sadly I can't find a satisfying EVENT (I searched the EVENT_PLAYER_DRAW_WEAPONS, but I...
Showing results 1 to 8 of 8