Gamestudio Links
Zorro Links
Newest Posts
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (AndrewAMD, Nymphodora), 1,470 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
firatv, wandaluciaia, Mega_Rod, EternallyCurious, howardR
19050 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Passable? #140814
07/12/07 23:35
07/12/07 23:35
Joined: Sep 2006
Posts: 148
Ireng Offline OP
Member
Ireng  Offline OP
Member

Joined: Sep 2006
Posts: 148
Why could it happen that an object that receives the instruction "my.passable=on;" inside a while loop, doesn't become passable in engine running?


"When the battlefield is under total control, war becomes routine." Old Snake
Re: Passable? [Re: Ireng] #140815
07/12/07 23:58
07/12/07 23:58
Joined: May 2006
Posts: 69
Canada
L
Leaf Offline
Junior Member
Leaf  Offline
Junior Member
L

Joined: May 2006
Posts: 69
Canada
Quote:

Why could it happen that an object that receives the instruction "my.passable=on;" inside a while loop, doesn't become passable in engine running?





Explain more please, possible post your script?

Re: Passable? [Re: Leaf] #140816
07/13/07 01:20
07/13/07 01:20
Joined: Sep 2006
Posts: 148
Ireng Offline OP
Member
Ireng  Offline OP
Member

Joined: Sep 2006
Posts: 148
while(my!=null)
{
my.passable=on;

my.alpha=100;
var targ[3];
vec_set(temp, my.x);
temp.z -= 900;
c_trace (my.x,temp,IGNORE_ME|IGNORE_MODELS|IGNORE_SPRITES|IGNORE_YOU);
while(vec_dist(my.x,targ)>5)
{
c_move(me,nullvector,vector(0,0,-10*time_step),ignore_you|ignore_sprites);
if(my.roll<90)||(my.roll>180){my.roll+=10*time;}
wait(1);
}
wait(1);
}


"When the battlefield is under total control, war becomes routine." Old Snake
Re: Passable? [Re: Ireng] #140817
07/13/07 01:39
07/13/07 01:39
Joined: Apr 2006
Posts: 58
Moerk Offline
Junior Member
Moerk  Offline
Junior Member

Joined: Apr 2006
Posts: 58
Maybe you didnt set a my pointer?


"Die Kette die mich ewig hält möge man erst noch schmieden" Regina S.
Re: Passable? [Re: Moerk] #140818
07/13/07 01:57
07/13/07 01:57
Joined: Jul 2007
Posts: 50
N
Nomad Offline
Junior Member
Nomad  Offline
Junior Member
N

Joined: Jul 2007
Posts: 50
Try removing 'ignore_models' if its a model entity.

Re: Passable? [Re: Nomad] #140819
07/13/07 02:32
07/13/07 02:32
Joined: Sep 2006
Posts: 148
Ireng Offline OP
Member
Ireng  Offline OP
Member

Joined: Sep 2006
Posts: 148
Nope, tried that and it didn't work.


"When the battlefield is under total control, war becomes routine." Old Snake
Re: Passable? [Re: Ireng] #140820
07/13/07 04:17
07/13/07 04:17
Joined: Aug 2005
Posts: 1,558
HK
V
vlau Offline
Serious User
vlau  Offline
Serious User
V

Joined: Aug 2005
Posts: 1,558
HK
Add ignore_passable in your c_move mode list.
Btw, better set the passable to your targets
instead of the player.


Last edited by vlau; 07/13/07 06:33.
Re: Passable? [Re: vlau] #140821
07/14/07 04:23
07/14/07 04:23
Joined: Sep 2006
Posts: 148
Ireng Offline OP
Member
Ireng  Offline OP
Member

Joined: Sep 2006
Posts: 148
I got it, the passable flag updated and contradicted my wishes too fast for me to notice.


"When the battlefield is under total control, war becomes routine." Old Snake

Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

Gamestudio download | chip programmers | 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