0 registered members (),
1,397
guests, and 7
spiders. |
Key:
Admin,
Global Mod,
Mod
|
|
|
Any way to move a sprite placed with ent_decal ?
#437087
02/09/14 05:57
02/09/14 05:57
|
Joined: Jul 2008
Posts: 2,107 Germany
rayp
OP
X
|
OP
X
Joined: Jul 2008
Posts: 2,107
Germany
|
Hi. Is there any way to move a sprite which was placed via ent_decal ?
PARTICLE* p = ent_decal(you,bmMark,7+random(3),random(360)); // place a random sized decal at the hit entity
p.lifespan = 1600; // remove decal after 100 seconds
p.material = mat_model; // assign a dedal material
Using vel_z or p.z in an event does not work ( only with alpha-value to fade out ). I tryed to use ent_create, but as guessed before, useless...need a decal to fit the surface ( like stain, blood etc ). So...any way to move a already placed decal-sprite ? Thanx2all
Acknex umgibt uns...zwischen Dir, mir, dem Stein dort... "Hey Griswold ... where u gonna put a tree that big ?" 1998 i married my loved wife ... Sheeva from Mortal Kombat, not Evil-Lyn as might have been expected rayp.flags |= UNTOUCHABLE;
|
|
|
Re: Any way to move a sprite placed with ent_decal ?
[Re: Kartoffel]
#437091
02/09/14 07:29
02/09/14 07:29
|
Joined: Jul 2008
Posts: 2,107 Germany
rayp
OP
X
|
OP
X
Joined: Jul 2008
Posts: 2,107
Germany
|
Yes. You mean MOVE. Does not work. ^^ Seams that decals cant be moved! fex
void _testevent (PARTICLE* p){
p.alpha -= time_step;
if (p.alpha <= 0) p.lifespan = 0;
//p.z -= time_step * 2; // wont work too
}
...
PARTICLE* p = ent_decal (you, bmMark, 7+random(3), random(360));
p.material = mat_model; // mat_particle, mat_sprites doesnt matter
p.alpha = 80;
p.vel_z = 3;
p.gravity = 3;
p.event = _testevent;
set (p, MOVE | TRANSLUCENT);
/*//and this wont do it also
while (p && p.z > 0){
p.z -= time_step * 2;
wait (1);
}*/
...
Thats why iam asking
Acknex umgibt uns...zwischen Dir, mir, dem Stein dort... "Hey Griswold ... where u gonna put a tree that big ?" 1998 i married my loved wife ... Sheeva from Mortal Kombat, not Evil-Lyn as might have been expected rayp.flags |= UNTOUCHABLE;
|
|
|
|