Gamestudio Links
Zorro Links
Newest Posts
ZorroGPT
by TipmyPip. 02/21/26 19:15
Camera always moves upwards?
by clonman. 02/21/26 09:29
Zorro version 3.0 prerelease!
by TipmyPip. 02/20/26 13:22
Sam Foster Sound | Experienced Game Composer for Hire
by titanicpiano14. 02/19/26 13:22
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
0 registered members (), 6,962 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
alx, ApprenticeInMuc, PatrickH90, USER0328, Sfrdragon
19199 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
why my.passable=off does not work? #68350
03/27/06 01:00
03/27/06 01:00
Joined: Nov 2005
Posts: 49
Massachusetts
T
TBone Offline OP
Newbie
TBone  Offline OP
Newbie
T

Joined: Nov 2005
Posts: 49
Massachusetts
Hi
I posted more detailed questions in the other sections, but my main problem is why the setting of my.passable=off; is being ignored.

I have two models, one ball and one player. the player moves towards the ball and then simply passes through it. I have the passable box UN-CHECKED in their respective properties box.

I tried a test script for each model:
while(my.passable=off)
{
c_move(my, vector(0,0,-1), nullvector, activate_trigger);
wait(1);
}

and the while loops run ok.

any ideas Please, I'm tearing my hair out

Thanks


"Supreme executive power derives from a mandate of the masses NOT some farcicle aquatic ceromony" Constitutional peasant skit "Monty Python and the Holy Grail"
Re: why my.passable=off does not work? [Re: TBone] #68351
03/27/06 04:20
03/27/06 04:20
Joined: Nov 2005
Posts: 49
Massachusetts
T
TBone Offline OP
Newbie
TBone  Offline OP
Newbie
T

Joined: Nov 2005
Posts: 49
Massachusetts
never mind found the problem.

After instantiating the model (standard hero.mdl) and scaling him up to fit my environment, his collision area went from his whole body to only his lower half.

I'll let you know if I find anything else

thanks


"Supreme executive power derives from a mandate of the masses NOT some farcicle aquatic ceromony" Constitutional peasant skit "Monty Python and the Holy Grail"
Re: why my.passable=off does not work? [Re: TBone] #68352
03/27/06 08:06
03/27/06 08:06
Joined: Nov 2002
Posts: 2,148
Germany
Dima Offline
Expert
Dima  Offline
Expert

Joined: Nov 2002
Posts: 2,148
Germany
try while(my.passable == off)
Because you need a boolean here!


I'm not afraid of competition cos I'm know that I'm best
Re: why my.passable=off does not work? [Re: TBone] #68353
03/27/06 10:47
03/27/06 10:47
Joined: Feb 2003
Posts: 6,818
Minot, North Dakota, USA
ulillillia Offline
Senior Expert
ulillillia  Offline
Senior Expert

Joined: Feb 2003
Posts: 6,818
Minot, North Dakota, USA
Quote:

I tried a test script for each model:
while(my.passable=off)
{
c_move(my, vector(0,0,-1), nullvector, activate_trigger);
wait(1);
}

and the while loops run ok.

any ideas Please, I'm tearing my hair out

Thanks




When conditional statements are involved, whether through an if statement or while loop, a double equal sign is needed. When assigning a value, a single equal sign is needed.

if (my_variable == 8) // I read it as "if my variable exactly equals eight"
{
my_other_variable = 4; // I read it as "my other variable equals four"
}

Just something to consider.


"You level up the fastest and easiest if you do things at your own level and no higher or lower" - useful tip My 2D game - release on Jun 13th; My tutorials
Re: why my.passable=off does not work? [Re: TBone] #68354
03/27/06 11:49
03/27/06 11:49
Joined: Feb 2003
Posts: 211
Unna
F
Freddy_dup1 Offline
Member
Freddy_dup1  Offline
Member
F

Joined: Feb 2003
Posts: 211
Unna
Hello,

sometimes you need to set the move_mode
of all models to ignore_passable and Ignore_passents.

I once forgot to do that and got similar problems.

Last edited by Freddy; 03/27/06 11:50.
Re: why my.passable=off does not work? [Re: Freddy_dup1] #68355
03/27/06 13:21
03/27/06 13:21
Joined: Nov 2005
Posts: 49
Massachusetts
T
TBone Offline OP
Newbie
TBone  Offline OP
Newbie
T

Joined: Nov 2005
Posts: 49
Massachusetts
Hi
that was a typo while(my.passable=off) it was

Problem solved, sort of.
The two models, one the standard hero.mdl and one I created (ball.mdl).
collision only works when the ball colides with the hero.mdl's legs (waist and below) not his chest,head, or arms.

The hero model was scaled up WED to fit the aspect ratio of the room.
I think this caused some sort of screw up.

I can explain this further if needed.
thanks for the help


"Supreme executive power derives from a mandate of the masses NOT some farcicle aquatic ceromony" Constitutional peasant skit "Monty Python and the Holy Grail"
Re: why my.passable=off does not work? [Re: TBone] #68356
03/28/06 00:12
03/28/06 00:12
Joined: Dec 2003
Posts: 1,220
Just down the road from Raven
BlueBeast Offline
Serious User
BlueBeast  Offline
Serious User

Joined: Dec 2003
Posts: 1,220
Just down the road from Raven
there was a time that models should always be at or very close to a 1.00 acale in WED.... but this was for visual errors on some cards.... looks like this is another good reason to scale the model in MED so it's not scaled in WED.


Maybe try that, but i'm not certain if it will help as much as the previous answers...

Jason


Gamestudio Pro 6.4
Pentium 4 3.0 GHz 800MHz BUS
AtiRadeon 9800 pro 256Mb 21" Monitor
1 Gig DDR RAM
36 Gig RAPTOR SATA+ 120 Gig SATA
SB Audigy 2 w/ 450 watt Logitech Z680 5.1

www.nordicepitaph.com

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