Gamestudio Links
Zorro Links
Newest Posts
loading historical data 1st time
by AndrewAMD. 04/14/23 12:54
Trade at bar open
by juanex. 04/13/23 19:43
Bug in Highpass2 filter
by rki. 04/13/23 09:54
Adding Limit Orders For IB
by scatters. 04/11/23 16:16
FisherN
by rki. 04/11/23 08:38
AUM Magazine
Latest Screens
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Hecknex World
Who's Online Now
3 registered members (AndrewAMD, Grant, Neb), 908 guests, and 6 spiders.
Key: Admin, Global Mod, Mod
Newest Members
rki, FranzIII, indonesiae, The_Judge, storrealba
18919 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Player falls across mdl terrain #71050
04/16/06 08:19
04/16/06 08:19
Joined: Aug 2002
Posts: 375
Germany
Salva Offline OP
Senior Member
Salva  Offline OP
Senior Member

Joined: Aug 2002
Posts: 375
Germany
Hi and good Easter to all!

I have created a terrain in mdl format, and I have put it in my test level, but there is a problem, the player always fall under the terrain, like if is not collision with the terrain, must I use a script for the terrain or for the player?

Greet
salva

Re: Player falls across mdl terrain [Re: Salva] #71051
04/16/06 09:20
04/16/06 09:20
Joined: Mar 2006
Posts: 2,758
Antwerp,Belgium
frazzle Offline
Expert
frazzle  Offline
Expert

Joined: Mar 2006
Posts: 2,758
Antwerp,Belgium
add the following line to your player action script:

Code:
   
action player_move
{
player = me;
wait(1);
my.polygon = on;
c_setminmax(me);
while (me != NULL)
{
...
move_mode =IGNORE_PASSABLE + IGNORE_PUSH + GLIDE + USE_BOX;
...
}
}



do not put ignore_me or ignore_you in the move_mode, otherwise the player will still
fall thrue the terrain.

Last edited by frazzle; 04/16/06 09:41.

Antec® Case
Intel® X58 Chipset
Intel® i7 975 Quad Core
8 GB RAM DDR3
SSD OCZ®-VERTEX2 3.5 x4 ; HD 600 GB
NVIDIA® GeForce GTX 295 Memory 1795GB
Re: Player falls across mdl terrain [Re: frazzle] #71052
04/16/06 11:22
04/16/06 11:22
Joined: Aug 2002
Posts: 375
Germany
Salva Offline OP
Senior Member
Salva  Offline OP
Senior Member

Joined: Aug 2002
Posts: 375
Germany
Thank You frazzle!


But don`t work, the same, I put the lines at the beginning of the player move func. but the same.

Greet
Salva

Re: Player falls across mdl terrain [Re: Salva] #71053
04/16/06 12:03
04/16/06 12:03
Joined: Jan 2004
Posts: 2,013
The Netherlands
E
Excessus Offline
Expert
Excessus  Offline
Expert
E

Joined: Jan 2004
Posts: 2,013
The Netherlands
You must set the mdl-terrains' polygon flag to ON.

Re: Player falls across mdl terrain [Re: Excessus] #71054
04/16/06 12:26
04/16/06 12:26
Joined: Aug 2002
Posts: 375
Germany
Salva Offline OP
Senior Member
Salva  Offline OP
Senior Member

Joined: Aug 2002
Posts: 375
Germany
Thank you excessus,
I have tried it already, but don't work the same, don't I know what happen however, if don't work is the same, I will use hmp terrain, but I now have an other problem, I have deleted a model from my level, and now each time that the level starts appears me an error that don't find the model that I have deleted, I have rebuild the level but the same, what must I do? very strange thing appear to me I don`t know what appens here.

salva


Moderated by  HeelX, rvL_eXile 

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