Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
1 registered members (TipmyPip), 18,631 guests, and 7 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Making Map -entities invisible #39295
01/16/05 05:31
01/16/05 05:31
Joined: Jul 2004
Posts: 74
Inside Maya
S
Sichlid Offline OP
Junior Member
Sichlid  Offline OP
Junior Member
S

Joined: Jul 2004
Posts: 74
Inside Maya
hi,

In my effort to try to increase FPS , I am trying to make certain
map- entities invisible from certain points where from the map entities
cant be seen by the Player.

- I have used clip_range
- I have not done visiblity calculation compile ( leave it for the last)

Now my question is can do something like mapentityname.visible = OFF;
in my C-script ?


Best Regards, Sichlid
Re: Making Map -entities invisible [Re: Sichlid] #39296
01/16/05 09:19
01/16/05 09:19
Joined: Jul 2001
Posts: 6,904
H
HeelX Offline
Senior Expert
HeelX  Offline
Senior Expert
H

Joined: Jul 2001
Posts: 6,904
use

<entityname>.invisible = on;

Re: Making Map -entities invisible [Re: HeelX] #39297
01/16/05 15:37
01/16/05 15:37
Joined: Jul 2004
Posts: 74
Inside Maya
S
Sichlid Offline OP
Junior Member
Sichlid  Offline OP
Junior Member
S

Joined: Jul 2004
Posts: 74
Inside Maya
thanks a lot ..it work now


Best Regards, Sichlid
Re: Making Map -entities invisible [Re: Sichlid] #39298
01/24/05 04:56
01/24/05 04:56
Joined: Sep 2002
Posts: 758
Sunny Scotland
xoNoid Offline
Developer
xoNoid  Offline
Developer

Joined: Sep 2002
Posts: 758
Sunny Scotland
If you want them to become invisible after being a certain distance from the player you could do this:

Code:
action map_entity
{
while(1)
{
if vec_dist(my.pos,player.pos)>500//if the distance between me and the player is greater than 500
{
my.invisible=on;
}
else
{
my.invisible=off;
}
waitt(16);//only run once a second
}
}




Moderated by  HeelX, Spirit 

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