Hey all.

I managed to figure out a quicksand function for my desert game.

However, I'm a little confused to how I need to program the code to check if the player has actually collided with the object, as the action currently does nothing useful (it just tries to lower the players Z value every 3 frames).

Is it possible that someone could provide a code snippet that would detect the player's collision with the model? I'll be able to take it from there, I'm just a little confused how I would collision detection with models.

My code is currently:

Code:
<...code skipped...>
//This action makes the player sink into the sand...
action sink_player{
	while(1){
		player.z-= 1;
		wait(3);
	}
}
<...more code...>

Cheers.


----
MegaMario
Regular 3D Game Studio User
http://www.krystalgaming.net