Posted By: PeterM
How to walk in a house? - 07/10/07 11:30
Hello.
I made a model of a house in max, then exported it as 3ds, inported in med and
saved it as mdl.
created it with ent_create...
And now afcourse I cant walk in a house becouse house is an entity and i
get blocked.
What can i do so i can walk in a house and only get blocked by walls
like it is suppose to be (like it would be if i made the house it in WED)?
I'm looking for a way that I can make a house in max and not in WED.
Posted By: tompo
Re: How to walk in a house? - 07/10/07 11:37
Two options, easy one and hard one
Easy
my.polygon = on;
If will not working
Hard one
make model passable and
create invisible boxes along the walls
cheers
Posted By: PeterM
Re: How to walk in a house? - 07/10/07 12:28
yes I tried that my.poligon=on; allready but it didnt work.
i did this and it didnt work.
action house
{
my.polygon=on;
}
should i put in anything else?
ill have to do it like you said
make model passable and
create invisible boxes along the walls
tnx for your help, if you know any other way please tell me.
Posted By: vlau
Re: How to walk in a house? - 07/10/07 13:51
Make sure your character's bounding box is set
correctly with c_setminmax(my). You can check
their bounding box by pressing F11 twice when
run your level.
Posted By: Nems
Re: How to walk in a house? - 07/10/07 14:23
You need to set your collision system up first to take advantage of my.poly = on in the manner you are looking for.
see this
Thread for an excellent example from Frederick_Lim, its A7 but you can just use the script to see how well walking on and in models can be. I think its just awesome how ever, this system really chews up the framerates as C_move instructions are all thats there.
Posted By: PeterM
Re: How to walk in a house? - 07/10/07 17:15
It works now. I used ent_move instead of c_move thats why it didnt work.
But now when i have c_move and enemy comes close to me so he can hit me, I cant
get away, its like my GLIDE doesnt work and i get stuck in the enemy...
did i write anything wrong??
c_move(my,my.force_x,nullvector,IGNORE_PASSABLE|GLIDE);
Tnx for your help
Posted By: tompo
Re: How to walk in a house? - 07/10/07 22:22
try to use events:
event_impact, event_entity etc
vec_to_angle (my.pan, bounce); //turn entity away
or add use_box mode
or add c_setminmax(me);