Search Unity

Collecting objects

Discussion in 'Scripting' started by Steve79, Oct 23, 2019.

  1. Steve79

    Steve79

    Joined:
    Oct 4, 2018
    Posts:
    3
    Hi,

    I want to make player collects object on the ground and so the collecting script should run when the player's Crouching animation is played.
    I write the code for collecting but I cannot make palyer do the action right when I want it do it.
    Can you help me?
     
  2. MadeFromPolygons

    MadeFromPolygons

    Joined:
    Oct 5, 2013
    Posts:
    3,977
    This is not feedback so it should not be marked as such, its not going to get you responses faster.

    Secondly, this is not a support forum, try posting in the scripting section. Even then though, they will need actual context and some code to see what you have done, what you describe isnt very informative so its difficult to tell what you have done + what is working and isnt working and assess what to advise based on that.

    So to recap: post in scripting section, without a feedback tag, and add the code that you currently have so people can look at it and help you.
     
    Joe-Censored likes this.