How to re-spawn entity/How to set entity to null?
Moderator: InsideQC Admins
4 posts
• Page 1 of 1
How to re-spawn entity/How to set entity to null?
Id like to spawn-remove entity at will. I have reference to in global variable. When I remove it, the reference remains but I'd like to set it to zero or null so I can spawn it later. How do I set null entity?
I guess solution might be to create global variable NullEntity and use it as null, but is there some more natural way to it?[/code]
I guess solution might be to create global variable NullEntity and use it as null, but is there some more natural way to it?[/code]
-

daemonicky - Posts: 185
- Joined: Wed Apr 13, 2011 1:34 pm
Re: How to re-spawn entity/How to set entity to null?
daemonicky wrote:Id like to spawn-remove entity at will. I have reference to in global variable. When I remove it, the reference remains but I'd like to set it to zero or null so I can spawn it later. How do I set null entity?
I guess solution might be to create global variable NullEntity and use it as null, but is there some more natural way to it?[/code]
set it to world:
- Code: Select all
entity fooentitty = world;
I know FrikaC made a cgi-bin version of the quakec interpreter once and wrote part of his website in QuakeC
(LordHavoc)
-

frag.machine - Posts: 2090
- Joined: Sat Nov 25, 2006 1:49 pm
4 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 1 guest
