Gamestudio Links
Zorro Links
Newest Posts
Strange "Alien" Skull created with >Knubber<
by NeoDumont. 04/10/26 18:58
400 free seamless texture pack downl. here !
by NeoDumont. 04/08/26 19:55
ZorroGPT
by TipmyPip. 04/08/26 17:08
TMFs on options in live trading
by Spirit. 03/26/26 19:52
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
0 registered members (), 4,151 guests, and 39 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Geir, ondrej, mredit, vestriaa, Lukudo
19206 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
how to remove the view_entity #262118
04/22/09 01:42
04/22/09 01:42
Joined: Sep 2007
Posts: 80
R
ruchen Offline OP
Junior Member
ruchen  Offline OP
Junior Member
R

Joined: Sep 2007
Posts: 80
I created a view entity using ent_createlayer(...), and I want to remove it from the level, but the ent_remove(...) can't do it , is there any other method ?

Re: how to remove the view_entity [Re: ruchen] #262120
04/22/09 01:51
04/22/09 01:51
Joined: Feb 2008
Posts: 3,232
Australia
EvilSOB Offline
Expert
EvilSOB  Offline
Expert

Joined: Feb 2008
Posts: 3,232
Australia
ent_remove doesnt work? Should do. Double check the pointer you are using to try to remove it.
Otherwise try PTR_REMOVE().


"There is no fate but what WE make." - CEO Cyberdyne Systems Corp.
A8.30.5 Commercial
Re: how to remove the view_entity [Re: EvilSOB] #262122
04/22/09 02:01
04/22/09 02:01
Joined: Sep 2007
Posts: 80
R
ruchen Offline OP
Junior Member
ruchen  Offline OP
Junior Member
R

Joined: Sep 2007
Posts: 80
I used ent_remove(), and if the view entity had been removed , it won't be visible, but it was visible. It's like that ent_remove() only removes the entity in the level, not the view entity.
My GameStudio is A6.5 , there isn't the function PTR_REMOVE().
Thank you!

Re: how to remove the view_entity [Re: ruchen] #262123
04/22/09 02:43
04/22/09 02:43
Joined: Feb 2008
Posts: 3,232
Australia
EvilSOB Offline
Expert
EvilSOB  Offline
Expert

Joined: Feb 2008
Posts: 3,232
Australia
OK, then try ent_remove followed by a wait(1);
It may be a screen-refresh thing.

If still no luck, post the whole function/action please.


"There is no fate but what WE make." - CEO Cyberdyne Systems Corp.
A8.30.5 Commercial
Re: how to remove the view_entity [Re: EvilSOB] #262125
04/22/09 02:49
04/22/09 02:49
Joined: Sep 2007
Posts: 80
R
ruchen Offline OP
Junior Member
ruchen  Offline OP
Junior Member
R

Joined: Sep 2007
Posts: 80
The tutorial says:
"ent_remove(ENTITY* entity);
Removes a level entity out of the level.
Parameters:
entity - Pointer to the level entity to be removed. "

if I use a pointer to the view entity as the parameter, teh engine show me an error.

Re: how to remove the view_entity [Re: ruchen] #262128
04/22/09 03:21
04/22/09 03:21
Joined: Feb 2008
Posts: 3,232
Australia
EvilSOB Offline
Expert
EvilSOB  Offline
Expert

Joined: Feb 2008
Posts: 3,232
Australia
Can I see some code?

At least the lines surrounding the ent_create, and the lines surrounding the ent_remove,
if there is a lot of "stuff" there.


"There is no fate but what WE make." - CEO Cyberdyne Systems Corp.
A8.30.5 Commercial
Re: how to remove the view_entity [Re: EvilSOB] #262137
04/22/09 05:06
04/22/09 05:06
Joined: Sep 2007
Posts: 80
R
ruchen Offline OP
Junior Member
ruchen  Offline OP
Junior Member
R

Joined: Sep 2007
Posts: 80
My demo is that: a car drives in a level, there are some other models in the level and a map on the screen to display the suroundings around the car.
So the map should displays the other models on it and I use ent_createlayer(...) to create view entities representing the models on the map. The function ent_create(...) only create entity in the level, here my view entities are on the map(screen).
Thank you very much!


Gamestudio download | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1