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, juanex, Grant), 1,018 guests, and 8 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
EVENT_SCAN getting pointer of particle that used c_scan? #334396
07/22/10 20:57
07/22/10 20:57
Joined: Dec 2008
Posts: 1,218
Germany
Rackscha Offline OP
Serious User
Rackscha  Offline OP
Serious User

Joined: Dec 2008
Posts: 1,218
Germany
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


MY Website with news of my projects:
(for example my current
Muliplayer Bomberman,
GenesisPrecompiler for LiteC
and TileMaster, an easy to use Tile editor)
Sparetime-Development

Re: EVENT_SCAN getting pointer of particle that used c_scan? [Re: Rackscha] #334556
07/23/10 21:58
07/23/10 21:58
Joined: Dec 2005
Posts: 116
T
tD_Datura_v Offline
Member
tD_Datura_v  Offline
Member
T

Joined: Dec 2005
Posts: 116
For what purpose is c_scan used with PARTICLE functions? Perhaps there is a better method.



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