PDA

View Full Version : Notify in UnrealEd 2.0


-Tj-
30th Nov 2004, 10:54 PM
I don't know if I'm doing something wrong, or if there's a setting I need to hit before it shows it, but I've noticed that some player models have the options under the Notify tab available and some do not. On the ones that do not, I have no idea how to enable it. I'd really like to use the animNotify for some things. Is there something I'm missing?

The Helios
1st Dec 2004, 10:05 AM
Visit the Unreal Development Network. There you should find some useful info about that.

-Tj-
1st Dec 2004, 12:00 PM
That was where I first checked, but didn't get very far initially. I think if you hadn't suggested it, I probably wouldn't have checked there again, but this time I got as far as finding a bit of code or script I may need to use. I haven't the foggiest of where to use it, though.

Here's what the info states at UDN:

The animation code (UnSkeletalMesh.cpp) checks for a notify in each frame for each sequence (in case of skeletal blended animation). If you want to disable a notify, a native function is provided; EnableChannelNotify() (this is pretty useful for instances of blended animation where you may not want the notify to be called). Each AnimNotify_* object has a Notify() function, this is where the magic is done. Each type just overrides this to add its unique functionality.

EnableChannelNotify() is what I need to use, apparently, but what do I do with this? Yet another section states this:

native final function EnableChannelNotify ( int Channel, int Switch )

This function enables and disables animation notifies for the given Channel. This includes AnimEnd events as well as AnimNotifies. If Switch is "0", the given channel will no longer process notifies and AnimEnd will no longer be called. If Switch is "1" the given channel will process notifies again.

Seems like both are used in different sections. Other than both of those 'hints' I couldn't find anything. Do you know where I need to use this, and how? (or if these bits of code are even relavent to my situation? :))

Hide
1st Dec 2004, 09:57 PM
Only the "ukx" which has the animations in own package can use "Notify".
Are you using "ukx" which is referring to the animations of the other package?

-Tj-
3rd Dec 2004, 05:31 AM
Ohhh, ok, that makes a lot of sense. Yes, the .ukx I was using used animations from another package. Thanks!