+ Reply to Thread
Page 1 of 2
1 2 LastLast
Results 1 to 10 of 16

Thread: Hologram help

  1. #1
    Wirererer bobthe2lol is on a distinguished road bobthe2lol's Avatar
    Join Date
    Aug 2007
    Location
    US,NY
    Posts
    269

    Exclamation Hologram help

    I had this working when it was only following me, but it wont work now, it just makes a little square over the E2...

    e2 Code:
    1. @name
    2. @inputs
    3. @outputs
    4. @persist Target:entity
    5. @trigger all
    6. if(first()){
    7. Target = owner()
    8. }
    9. holoCreate(1)
    10. holoModel(1, "cube")
    11. holoCreate(2)
    12. holoModel(2, "cube")
    13. interval(10)
    14. runOnChat(1)
    15. if(chatClk()){
    16. Command = owner():lastSaid():explode(" ")
    17. if(Command:string(1) == "follow"){
    18. if(findPlayerByName(Command:string(2)):isPlayer()){
    19. Target = findPlayerByName(Command:string(2))
    20. }
    21. }
    22. }
    23.  
    24. if(tickClk()){
    25. Stuff = vec(5,5,5)
    26. holoPos(1, (Target:pos()+(owner():right()*90))+vec(0,0,50))
    27. holoAng(1, Target:eyeAngles())
    28. holoPos(2, (Target:pos()+(owner():right()*-90))+vec(0,0,50))
    29. holoAng(2, Target:eyeAngles())
    30. holoScale(1, Stuff)
    31. holoScale(2, Stuff)
    32. }
    Thanks in advance!

  2. #2
    Wirezard


    Matte is a jewel in the rough Matte is a jewel in the rough Matte is a jewel in the rough Matte is a jewel in the rough Matte's Avatar
    Join Date
    Jan 2009
    Location
    Norway
    Posts
    2,099

    Default Re: Hologram help

    Quote Originally Posted by bobthe2lol View Post
    Code:
    @name 
    @inputs 
    @outputs 
    @persist Target:entity
    @trigger all
    if(first()){
        Target = owner()
    }
    holoCreate(1)
    holoModel(1, "cube")
    holoCreate(2)
    holoModel(2, "cube")
    interval(10)
    
    Don't call the holoCreate()-functions every execution.
    "If anybody says he can think about quantum physics without getting giddy, that only shows he has not understood the first thing about them."
    -- Niels Bohr


  3. #3
    Wirererer bobthe2lol is on a distinguished road bobthe2lol's Avatar
    Join Date
    Aug 2007
    Location
    US,NY
    Posts
    269

    Default Re: Hologram help

    uhh im not? there before interval(10)

  4. #4
    Wirezard


    Matte is a jewel in the rough Matte is a jewel in the rough Matte is a jewel in the rough Matte is a jewel in the rough Matte's Avatar
    Join Date
    Jan 2009
    Location
    Norway
    Posts
    2,099

    Default Re: Hologram help

    interval() executes the whole chip, so yes, you are calling them every execution.

    Just put them inside "if(first())".
    Code:
    if(first()){
        Target = owner()
        holoCreate(1)
        holoModel(1, "cube")
        holoCreate(2)
        holoModel(2, "cube")
    }
    interval(10)
    
    "If anybody says he can think about quantum physics without getting giddy, that only shows he has not understood the first thing about them."
    -- Niels Bohr


  5. #5
    Wirererer bobthe2lol is on a distinguished road bobthe2lol's Avatar
    Join Date
    Aug 2007
    Location
    US,NY
    Posts
    269

    Default Re: Hologram help

    Ok... no diffrence... beside the ops went down... its still just a hologram with the e2 inside of it, and follow <player> does nothing...

  6. #6
    Wiremod Supporter
    Joshieballz is on a distinguished road Joshieballz's Avatar
    Join Date
    Feb 2009
    Location
    Hull
    Posts
    86

    Default Re: Hologram help

    If u just want it to follow you here is the code


    e2 Code:
    1. @name
    2. @inputs
    3. @outputs
    4. @persist
    5. @trigger all
    6. if(first()){
    7. holoCreate(1)
    8. holoCreate(2)
    9. }
    10. holoModel(1, "cube")
    11. holoModel(2, "cube")
    12. runOnTick(1)
    13.  
    14. Pos1 = owner():pos() + owner():right()*90 + vec(0,0,50)
    15. Pos2 = owner():pos() + owner():right()*-90 + vec(0,0,50)
    16.  
    17. Stuff = vec(5,5,5)
    18. holoPos(1,Pos1)
    19. holoAng(1, owner():eyeAngles())
    20. holoPos(2,Pos2)
    21. holoAng(2, owner():eyeAngles())
    22. holoScale(1, Stuff)
    23. holoScale(2, Stuff)



    If u have any questions or concerns contact me on www.tuggaming.co.uk

  7. #7
    Wirezard


    Matte is a jewel in the rough Matte is a jewel in the rough Matte is a jewel in the rough Matte is a jewel in the rough Matte's Avatar
    Join Date
    Jan 2009
    Location
    Norway
    Posts
    2,099

    Default Re: Hologram help

    Change interval(10) with runOnTick(1), and you should be fine.

    EDIT: @ woto:

    No, he said it worked fine when it followed him, but screwed up when it followed others.
    "If anybody says he can think about quantum physics without getting giddy, that only shows he has not understood the first thing about them."
    -- Niels Bohr


  8. #8
    Wirererer bobthe2lol is on a distinguished road bobthe2lol's Avatar
    Join Date
    Aug 2007
    Location
    US,NY
    Posts
    269

    Default

    Quote Originally Posted by Matte View Post
    Change interval(10) with runOnTick(1), and you should be fine.

    EDIT: @ woto:

    No, he said it worked fine when it followed him, but screwed up when it followed others.
    Holy crap thanks!

    Actually........... no. It inially follows me fine, but when ever i say anything it goes to the map origin. But, strangely, it still like follows you, but it dosent follow you. It follows your angles, but not position....

  9. #9
    Wirezard


    Matte is a jewel in the rough Matte is a jewel in the rough Matte is a jewel in the rough Matte is a jewel in the rough Matte's Avatar
    Join Date
    Jan 2009
    Location
    Norway
    Posts
    2,099

    Default Re: Hologram help

    Is it still bugged, or is it the problem solved?

    I couldn't make out a meaning of your last post.
    "If anybody says he can think about quantum physics without getting giddy, that only shows he has not understood the first thing about them."
    -- Niels Bohr


  10. #10
    Wirererer bobthe2lol is on a distinguished road bobthe2lol's Avatar
    Join Date
    Aug 2007
    Location
    US,NY
    Posts
    269

    Default Re: Hologram help

    Bugged. Sorry. When i spawn it, it does follow me, but as soon as i say anything, it goes to the map origin and stays there.

+ Reply to Thread
Page 1 of 2
1 2 LastLast

Similar Threads

  1. Cat's New Hologram HUD
    By SpectreCat in forum Contraptions & Saves
    Replies: 34
    Last Post: 08-23-2009, 08:53 PM
  2. hologram hud
    By eduardo in forum Ideas & Suggestions
    Replies: 10
    Last Post: 06-22-2009, 01:30 PM
  3. Hologram Help
    By Zukarakox in forum Help & Support
    Replies: 9
    Last Post: 12-25-2007, 04:41 PM
  4. Hologram kit bug
    By Mini Franki in forum Bug Reports Archive
    Replies: 0
    Last Post: 10-27-2007, 11:42 AM
  5. Hologram Help
    By Guardian9978 in forum Help & Support
    Replies: 0
    Last Post: 04-12-2007, 08:44 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts