Gamestudio Links
Zorro Links
Newest Posts
Camera always moves upwards?
by clonman. 11/13/25 14:04
brokerCommand PLOT_HLINE parameters
by M_D. 11/13/25 10:42
ZorroGPT
by TipmyPip. 11/10/25 11:04
Training with the R bridge does not work
by frutza. 11/05/25 00:46
Zorro 2.70
by opm. 10/24/25 03:44
Alpaca Plugin v1.4.0
by TipmyPip. 10/20/25 18:04
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
5 registered members (Grant, AndrewAMD, ozgur, Quad, TipmyPip), 29,980 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
sheliepaley, Blueguy, blobplayintennis, someone2, NotEBspark
19177 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 | 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