Recent content by Zaddo

  1. Z

    Get UIS Item Attribute From UCC ActionModule

    That helped point me in the right direction. I knew the ItemIdentifier was the UIS Item from looking at the CharacterInventoryBridge. The thing I didn't realise was that I can create an action module in the Opsive.UltimateCharacterController.Integrations.UltimateInventorySystem assembly. For...
  2. Z

    Get UIS Item Attribute From UCC ActionModule

    I have a weapon with a ShootableAction component. This has a custom Action Module that I need to retrieve an Item Attribute from the weapons UIS Item. I have done this by: 1. Create a component in the UCC assembly with a property used to transfer the value. (See below) 2. Attach this component...
  3. Z

    Weapon stun time

    With this mod you will be able to set a stun time for each weapon. After a successful attack this will play the knock back animation and stun the victim for the duration set on the weapon action. I couldn't find a way to do this natively with UCC. This is what I came up with. If there is a...
  4. Z

    PunLookSource possible bug

    I had a problem with AI Bot's aiming. To fix this in my project I modified method LookDirection in PunLookSource and changed the Raycast to use lookPosition instead of m_NetworkLookPosition. Posting here, because this might be a bug? public Vector3 LookDirection(Vector3 lookPosition...
  5. Z

    Edit Script and Locate Script not working for custom Task

    Apologies. The file name was different to the class name. I spent hours trying to work out why it wasn't working and never noticed the typo. But with a fresh set of eyes, I spotted it immediately.
  6. Z

    Edit Script and Locate Script not working for custom Task

    It has been a while since I touched Behavior Designer. I was trying to view the script for a task, but the Edit and Locate script context options would not work. This made it difficult to find what the task was because the only other clue is the Name, which can be changed. I found it by...
  7. Z

    Upgrade path for dots

    Hi Justin, I read your post on plans to release a dots version of behavior designer later this year. I am curious if you have any idea on what upgrade path, if any, there will be for existing behavior trees? At the very least, I expect any custom tasks we have written, will need to be...
  8. Z

    How to retrieve active State's for a game object?

    How do I check if a State is active on a game object? I couldn't find a method in the StateManager to do this.
  9. Z

    Learning multiplayer: where to start?

    The PUN option is by far the easiest way to get up and running with multiplayer. If you consider the time the add-on will save you, it is exceptional value. PUN itself is free, for the first 20 CCU's. So you don't have to worry about additional costs until you publish your game. This is a...
  10. Z

    [Feature] Get Ability by Ability Index

    The Generic ability is very versatile. But if you have more than one, then you need to depend on the index order to retrieve the correct ability. Using order for retrieval can easily lead to configuration bugs. The AbilityIndexParameter would typically be unique for multiple instances of the...
  11. Z

    [BUG] Error Caused by Unity's Object Not Supporting C# Syntactic Sugar

    @Sangemdoko, thanks that helps clarify the risk. I just finished cleaning up my code. Most of the occurrences were defensive programming and so unlikely to ever trigger. But still I am glad to be aware of the issue.
  12. Z

    [BUG] Error Caused by Unity's Object Not Supporting C# Syntactic Sugar

    Okay.... So, monbehavior, scriptableobject, etc. best to avoid null propogating on anything Unity except structs. I have this syntax scattered throughout my code. I am surprised I haven't noticed bugs. Thanks again.
  13. Z

    [BUG] Error Caused by Unity's Object Not Supporting C# Syntactic Sugar

    @WeiYiHua That is a scary problem. Thank you for posting this. Since it affects null propogation, does that mean that anything after the "?" will never execute and always just a assign a null to the result? Do you know if this applies to MonoBehaviour's?
  14. Z

    Fruit Spawning and Throwing

    I recently added two new features to my game. Fruit spawning, which places fruit randomly on the vertices of a plant, and throwing. The UCC throwing ability was really good and I only had to make a few small changes to achieve the result I was after. The game world is persistent and...
Top