+ Reply to Thread
Results 1 to 5 of 5

Thread: How do I clear an entity

  1. #1
    Wire Sofaking SpectreCat's Avatar
    Join Date
    Mar 2008
    Location
    Sammamish, Washington
    Posts
    504

    Default How do I clear an entity

    I have a simple question. If I wanted to make clear a variable I would do like A = 0, and if I wanted to clear a string i would do A = "". How do I clear an entity?

  2. #2
    Spucatum Tauri Bull's Avatar
    Join Date
    Jun 2008
    Location
    Finland
    Posts
    6,009

    Default Re: How do I clear an entity

    Good question!

    Maybe you could do:
    Code:
    A=entity(0)
    Not sure though, I never thought about it.
    My signature has a point.
    Quote Originally Posted by Squeakyneb View Post
    when l3ulletje says do it, do it.
    That

    Quote Originally Posted by Anticept View Post
    By the way, Bull is in charge.

  3. #3
    Wire Sofaking ZeikJT's Avatar
    Join Date
    Dec 2008
    Location
    California
    Posts
    1,391

    Default Re: How do I clear an entity

    Entity 0 should be the world spawn. It will probably be valid, use -1 if anything.
    Against stupidity the Gods themselves contend in vain.
    -Friedrich Schiller

    The flame puts me in the mood to "Do it!".
    -Dart, Legend of Dragoon

  4. #4
    Expressionism 2.0 Syranide's Avatar
    Join Date
    Mar 2007
    Location
    Sweden
    Posts
    4,573

    Default Re: How do I clear an entity

    Another possibility is to simply add another persist NullEntity or something, since it is never set, it will always be NULL. I'll add a function (noentity()) for returning null-entities.

  5. #5
    Wire Tutor chinoto's Avatar
    Join Date
    Apr 2008
    Location
    Brooklyn Park, MN. Lost my thumbdrive yet again...
    Posts
    1,983

    Default Re: How do I clear an entity

    That will help a lot whenever I make my own telekinesis expression.
    (\__/) Expression 2 Resources: E2 Beginner's Guide | E2 Formatting Guide | E2 Function Reference | E2 Examples | Me
    (='.'=) PM me code and I'll send it back optimized if possible. (I find it fun dammit!)
    (")_(") Drunkie referring to an E2: "It's obvious that Chinoto made this, his coding style is all over it."

+ Reply to Thread

Similar Threads

  1. entity():right()
    By Aura in forum Expression 2 Discussion & Help
    Replies: 5
    Last Post: 03-23-2009, 09:24 PM
  2. Welded Entity
    By Hellfire in forum Expression 2 Discussion & Help
    Replies: 6
    Last Post: 01-24-2009, 03:40 AM
  3. Add a "Clear" input to all RAM chips.
    By Beer in forum Ideas & Suggestions
    Replies: 15
    Last Post: 07-16-2008, 05:32 PM
  4. scripted entity
    By SenSai in forum Installation and Malfunctions Support
    Replies: 7
    Last Post: 11-22-2007, 07:27 AM
  5. Entity
    By Pyro-Fire in forum Installation and Malfunctions Support
    Replies: 1
    Last Post: 09-25-2007, 09:52 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
proceed-collector
proceed-collector
proceed-collector
proceed-collector
linguistic-parrots
linguistic-parrots
linguistic-parrots
linguistic-parrots