Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

need some help pls

Discussion in 'General Discussion' started by ahmedalheday, Aug 23, 2014.

  1. ahmedalheday

    ahmedalheday

    Joined:
    Feb 24, 2014
    Posts:
    103
    hello
    i been working on a game for the last 3 months
    and its sixty percent about to be done
    and i need just some help or guidance in some point and i wish if someone has some free time that could help me out

    the problem that i am facing and the game that i am working on is a FPs game
    so i can't get the player to die but i can get the enemy to die
    i tried some things like scripts but it did not work it i don't know what am i doing wrong but i hope someone will help me out
     
  2. Dave-xP

    Dave-xP

    Joined:
    Nov 8, 2013
    Posts:
    106
    well, i can help you out
     
  3. ahmedalheday

    ahmedalheday

    Joined:
    Feb 24, 2014
    Posts:
    103
    yes plss i really need some help if u can !?
     
  4. Dave-xP

    Dave-xP

    Joined:
    Nov 8, 2013
    Posts:
    106
    can you describe your ploblem a little (i mean huge) bit more.
    or you wanna add me on skype? davidwieser149
     
  5. ahmedalheday

    ahmedalheday

    Joined:
    Feb 24, 2014
    Posts:
    103
    right a away just need a mint
    coz i never use it alot
     
  6. Dave-xP

    Dave-xP

    Joined:
    Nov 8, 2013
    Posts:
    106
    you need a mint? okay
    and what are you never using a lot?
     
  7. ahmedalheday

    ahmedalheday

    Joined:
    Feb 24, 2014
    Posts:
    103
    humm i cant seem to find u
    code u serach for me pls
    ahmed.alheday1
     
  8. randomperson42

    randomperson42

    Joined:
    Jun 29, 2013
    Posts:
    974
    Here you go. Hope it helps.
    mint.jpg
     
  9. ahmedalheday

    ahmedalheday

    Joined:
    Feb 24, 2014
    Posts:
    103
  10. Dave-xP

    Dave-xP

    Joined:
    Nov 8, 2013
    Posts:
    106
    I found you on skype and i added you.
     
    ahmedalheday likes this.
  11. randomperson42

    randomperson42

    Joined:
    Jun 29, 2013
    Posts:
    974
    ???
     
  12. calmcarrots

    calmcarrots

    Joined:
    Mar 7, 2014
    Posts:
    654
    I am so confused
     
    randomperson42 likes this.
  13. HolBol

    HolBol

    Joined:
    Feb 9, 2010
    Posts:
    2,888
    60% done and the character can't die?

    Stop lying. Get real. And go to the right forum section. Learn how to use google.
     
    Zeblote and Dave-xP like this.
  14. Dave-xP

    Dave-xP

    Joined:
    Nov 8, 2013
    Posts:
    106
    Last edited: Aug 24, 2014
  15. ahmedalheday

    ahmedalheday

    Joined:
    Feb 24, 2014
    Posts:
    103
    i already did
    but can't seem to find something to work
    so give a brake
    i just ask for help
     
  16. ahmedalheday

    ahmedalheday

    Joined:
    Feb 24, 2014
    Posts:
    103
    the error
    Assets/died.js(3,20): BCE0018: The name 'Health' does not denote a valid type ('not found').

    the script
    #pragma strict

    var playerHealth : Health;
    playerHealth=hit.GameObject.GetComonet(Heath);
    playerHealth.health=30;


     
  17. calmcarrots

    calmcarrots

    Joined:
    Mar 7, 2014
    Posts:
    654
    Omg please dude
    1. Learn to spell
    2. Learn how to read an error
    3. Stop asking for so much help. If you can't figure out what that small tiny error is, then you shouldnt be making a MMORPG.
     
  18. zDemonhunter99

    zDemonhunter99

    Joined:
    Apr 23, 2014
    Posts:
    478
  19. zDemonhunter99

    zDemonhunter99

    Joined:
    Apr 23, 2014
    Posts:
    478
    Also,
    1. There is no type such as "Health".
    2. You didn't declare what "hit" is.
    3. It's 'GetComponent()'.
    4. Unless your game is full of asset store assets and scripts, it's not possible for your game to be 60% completed.
    I'd recommend you to be throughly acquainted with the basics of scripting with JavaScript before trying to make a game. A book or two along with online tutorials will do the trick.
     
    ahmedalheday likes this.