EVENT_SCAN getting pointer of particle that used c_scan?

Posted By: Rackscha

EVENT_SCAN getting pointer of particle that used c_scan? - 07/22/10 20:57

HI,
I have a particle that uses c_scan during its movement.

If a normal Entity uses c_scan, EVENT_SCAN has a valid you pointer for the other entity.
Ofcaus ethat wont work with a particle(or?)

i have this construcion:

Entity->spawns particle->particle hits another entity

inside the particle function, a you pointer is valid for the first frame. so i tried to save that you pointer as a handle in skill_b, and set a me pointer from this handle before i execute c_scan which looks like this(pseudocode):

Code:
function pfunction_a(PARTICLE* p)
{
my = ptr_for_handle(p.skill_a);
c_scan(...)
}

function pfunction_main(PARTICLE* p)
{
p.skill_b = handle(you);
.
.
.
.
p.event = pfunction_a;
}



Didnt help.
Someone any ideas for this?

Greets
Rackscha
Posted By: tD_Datura_v

Re: EVENT_SCAN getting pointer of particle that used c_scan? - 07/23/10 21:58

For what purpose is c_scan used with PARTICLE functions? Perhaps there is a better method.

© 2024 lite-C Forums