Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
0 registered members (), 18,561 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
What order are DETECT and SCAN event functions triggered in? #220955
08/11/08 05:27
08/11/08 05:27
Joined: Nov 2007
Posts: 50
C
Chaeon Offline OP
Junior Member
Chaeon  Offline OP
Junior Member
C

Joined: Nov 2007
Posts: 50
when multiple entities are caught in the same scan is there any particular order their events are triggered? And does that order also apply on the EVENT_DETECT end? the you pointer is set to the closest, could this be because the closest entity is the last to be triggered? the manual doesnt seem to go very deep here, and a more thorough explanation would be appreciated..

Re: What order are DETECT and SCAN event functions triggered in? [Re: Chaeon] #220973
08/11/08 06:52
08/11/08 06:52
Joined: Dec 2006
Posts: 1,086
Queensland - Australia
Nidhogg Offline
Serious User
Nidhogg  Offline
Serious User

Joined: Dec 2006
Posts: 1,086
Queensland - Australia
I'm not sure but I think it's the first one that gets hit with the scan first
or if the entity has a skill set to a lower value...

But you could set it up the way you want to any way but using
the CASE statement.


Windows XP SP3
Intel Dual Core CPU: E5200 @ 2.5GHz
4.00GB DDR3 Ram
ASUS P5G41T-M LX
PCIE x16 GeForce GTS 450 1Gb
SB Audigy 4
Spyware Doctor with AntiVirus
Re: What order are DETECT and SCAN event functions triggered in? [Re: Nidhogg] #220983
08/11/08 08:01
08/11/08 08:01
Joined: Nov 2007
Posts: 50
C
Chaeon Offline OP
Junior Member
Chaeon  Offline OP
Junior Member
C

Joined: Nov 2007
Posts: 50
thank you for you message

ya that sort of answers my question in that if someone labeled senior member doesn't quite know the answer then i was on the wrong track.

im trying to get together a sweeping strike that can connect at any point the strike is in motion, but only deals damage once to each target caught in it. come to think, that isnt uncommon in games..

spose i could set a skill to make all entities hit by a sweeping strike temporarily immune to all sweeping strikes.. sounds a bit chicken really..

if i still seem on the wrong track im open to comments and criticism ppl


I HEART 3DGS
Re: What order are DETECT and SCAN event functions triggered in? [Re: Chaeon] #220987
08/11/08 10:00
08/11/08 10:00
Joined: Dec 2006
Posts: 1,086
Queensland - Australia
Nidhogg Offline
Serious User
Nidhogg  Offline
Serious User

Joined: Dec 2006
Posts: 1,086
Queensland - Australia
I suppose you could set a flag for that.
eg:

Code:
#define ent_gothit FLAG1 // Setup FLAG1 on entity as a hit trigger

//text: Flag to to manage if entity has been hit
//flag1:ent_gothit 0 // Set to 0, Not hit yet..
action strike_point()
{
  if (strike_hit_me){
   my.ent_gothit = 1;
   }


You get the idea...

Good luck...


Windows XP SP3
Intel Dual Core CPU: E5200 @ 2.5GHz
4.00GB DDR3 Ram
ASUS P5G41T-M LX
PCIE x16 GeForce GTS 450 1Gb
SB Audigy 4
Spyware Doctor with AntiVirus

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

Gamestudio download | 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