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
1 registered members (Grant), 999 guests, and 2 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
impact with door #391265
01/09/12 20:52
01/09/12 20:52
Joined: Dec 2010
Posts: 100
D
Dega Offline OP
Member
Dega  Offline OP
Member
D

Joined: Dec 2010
Posts: 100
I want to have it where when the player collides with the door and then it goes to the level but for some reason when I use the EVENT_IMPACT it crashes. What do I do? I need it to recognize that the door hit the player.


boolean my.awesomeness = so true;
Re: impact with door [Re: Dega] #391266
01/09/12 21:02
01/09/12 21:02
Joined: Feb 2010
Posts: 886
Random Offline
User
Random  Offline
User

Joined: Feb 2010
Posts: 886
Is your door a hing (two puten together physic objects) or only a model?
If it`s only a model, then use c_trace. Thats easier and works better (at least for me...)
example:

Quote:
skill1 enable_open;

VECTOR target_pos;
vec_set (target_pos.x, vector(100, 0, 0));
vec_rotate (target_pos.x, my.pan);
vec_add (target_pos.x, my.x);
c_trace (my.x, target_pos.x, IGNORE_ME|IGNORE_PASSABLE);
if (you)
{
if(you.enable_open == 1)
{
//your open door code
}
}


But if it is, a physic object (hing), then please show at least a part of the script




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