0 registered members (),
959
guests, and 2
spiders. |
Key:
Admin,
Global Mod,
Mod
|
|
|
Re: punch hole in terrain
[Re: DAVIDMORETON]
#472077
04/05/18 11:13
04/05/18 11:13
|
Joined: Oct 2007
Posts: 5,210 İstanbul, Turkey
Quad
Senior Expert
|
Senior Expert
Joined: Oct 2007
Posts: 5,210
İstanbul, Turkey
|
if it's only a couple of holes, you could split the terrain,or create a transparent parts in the skin and make it passable as you already do.
3333333333
|
|
|
Re: punch hole in terrain
[Re: DAVIDMORETON]
#472149
04/12/18 10:47
04/12/18 10:47
|
Joined: Jan 2005
Posts: 282 devon UK
DAVIDMORETON
OP
Member
|
OP
Member
Joined: Jan 2005
Posts: 282
devon UK
|
I have a scene with a terrain, player, and a sphere. The sphere drops to a certain point when the terrain should become passable - BUT IT DOSE NOT!
#include <acknex.h> #include <default.c> #include "t_player.h" //////////////////////////////
ENTITY* player="t_player";
ENTITY* terrain = "tester.hmp";
ENTITY* sphere = "ball.mdl";
function main() { level_load("xc1.WMB");
}
action down() //sphere drops to z-16 {
while(sphere.z>-16) { sphere=me; sphere.z -= 3*time_step; wait(1); }} //this works fine
{ if(sphere.z<10) //this should be the trigger point //for the 'terrain' to go passable { terrain=me; set(my,PASSABLE); wait(1); }} //But it does not work
CAN anyone help please? I need to make the terrain 'passable' or disappear from the scene altogether . David
Last edited by DAVIDMORETON; 04/12/18 11:47.
|
|
|
|