Jump to content

Photo

Tracking hits on CRE?


4 replies to this topic

#1 Domi

Domi

    Where is now your Troy, O Cassandra?

  • Gibberlings
  • 12706 posts
  • Gender:Male
  • Location:Canada

Posted 21 July 2004 - 08:17 AM

Guys, what I want to do is the following:

I need to track if a joinable NPC (or Player1) hit a particular CRE.

Any thoughts?
Faster. Faster. Faster would be better. -Mal Reynolds, Serenity
I understand that folks prefer code that works. -CamDawg, G3

#2 Meira

Meira

    I'm the snow on your lips

  • Retired Gibberlings
  • 1987 posts
  • Gender:Male
  • Location:Helsinki, Finland

Posted 21 July 2004 - 08:57 AM

How about:

HitBy(O:Object*,I:DameType*Damages)
Returns true only if the active CRE was hit by the specifed object by the specified damage type in the last script round. If the damage type is CRUSHING or 0 then this will return true for ANY damage type.


Ihmeellinen meri

Kummalliset kalat liukuvat syvyydessä,
tuntemattomat kukat loistavat rannalla;
olen nähnyt punaista ja keltaista ja kaikki toiset värit -
mutta ihana meri on vaarallista nähdä,
se herättää tulevien seikkailujen janon:
mitä on tapahtunut sadussa, on tapahtuva minullekin.

- Edith Södergran



Amber - The BG2 NPC Mod Project Now released!
Amber's discussion forum at Gibberlings 3

#3 Domi

Domi

    Where is now your Troy, O Cassandra?

  • Gibberlings
  • 12706 posts
  • Gender:Male
  • Location:Canada

Posted 21 July 2004 - 08:59 AM

Thank you!
Faster. Faster. Faster would be better. -Mal Reynolds, Serenity
I understand that folks prefer code that works. -CamDawg, G3

#4 Creepin

Creepin
  • Members
  • 169 posts
  • Gender:Male
  • Location:Moscow

Posted 21 July 2004 - 12:25 PM

How about:

HitBy(O:Object*,I:DameType*Damages)
Returns true only if the active CRE was hit by the specifed object by the specified damage type in the last script round. If the damage type is CRUSHING or 0 then this will return true for ANY damage type.

Domi, just to be sure: did you notice "in the last script round" part of trigger description? So this check will only work a short moment after hit itself.

#5 Domi

Domi

    Where is now your Troy, O Cassandra?

  • Gibberlings
  • 12706 posts
  • Gender:Male
  • Location:Canada

Posted 21 July 2004 - 12:32 PM

That is OK, I want to set Global immediately if Hit
Faster. Faster. Faster would be better. -Mal Reynolds, Serenity
I understand that folks prefer code that works. -CamDawg, G3



Reply to this topic



  


1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users