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
ENABLE_IMPACT problem.. help plz #346703
11/08/10 23:21
11/08/10 23:21
Joined: Jul 2009
Posts: 85
A
Altarius Offline OP
Junior Member
Altarius  Offline OP
Junior Member
A

Joined: Jul 2009
Posts: 85
Hi,

I use ENABLE_IMPACT for get a enemy hurt by bullet.like this..

function got_shot()
{
my.health -= 50;
}

my.emask |= ENABLE_IMPACT;
my.event = got_shot;

My problem is when i hit the model whit my character the enemy lost health same than when he got hurt by bullet... It is possible to use flag for make ENABLE_IMPACT to ignore certain type of model?

I tried somthing like this ..

my.emask |= (ENABLE_IMPACT | IGNORE_FLAG2);

But that not work =(





Last edited by Altarius; 11/08/10 23:27.
Re: ENABLE_IMPACT problem.. help plz [Re: Altarius] #346705
11/08/10 23:38
11/08/10 23:38
Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Superku Offline
Senior Expert
Superku  Offline
Senior Expert

Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
function got_shot()
{
if(you != player) {
my.health -= 50;
}
}


Or better check, set (f.i.) every bullet's skill100 to 9876 and check if (your.skill100 == 9876) is true.


"Falls das Resultat nicht einfach nur dermassen gut aussieht, sollten Sie nochmal von vorn anfangen..." - Manual

Check out my new game: Pogostuck: Rage With Your Friends
Re: ENABLE_IMPACT problem.. help plz [Re: Superku] #346709
11/09/10 01:00
11/09/10 01:00
Joined: Nov 2006
Posts: 59
Alberta, Canada
Dveyee Offline
Junior Member
Dveyee  Offline
Junior Member

Joined: Nov 2006
Posts: 59
Alberta, Canada
Originally Posted By: Superku
Or better check, set (f.i.) every bullet's skill100 to 9876 and check if (your.skill100 == 9876) is true.

For convention, use skill66:

Originally Posted By: The Gamestudio Manual
Usually, skill66 (actor_id) is used for an object identification code.



Accelerated Game Creation Tutorial - Learn how to use 3D Gamestudio's WED with these exciting video tutorials!

Visit our website at http://www.accgames.com.
Re: ENABLE_IMPACT problem.. help plz [Re: Altarius] #346711
11/09/10 03:13
11/09/10 03:13
Joined: Jul 2009
Posts: 85
A
Altarius Offline OP
Junior Member
Altarius  Offline OP
Junior Member
A

Joined: Jul 2009
Posts: 85
Thx i got it work.

I modified my ennemy event like this...

function got_shot()
{
if (you.skill30 != 1) {return;}
my.health -= 50;
}

And added "my.skill30 = 1;" to my bullet function.

thx guys.


Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

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