|
Re: LASER Particle [C-SCRIPT]
[Re: 3run]
#283435
08/07/09 18:44
08/07/09 18:44
|
Joined: Jun 2008
Posts: 402 Germany
sebbi91
Senior Member
|
Senior Member
Joined: Jun 2008
Posts: 402
Germany
|
no problem I would suggest to you the Laserweapon from the ratsoft "waffentutorial" But its german! http://www.rat-soft.de/dload/Waffentutorial.pdflook at:"Energiewaffen" at page 26,27 and 28 it shows you an thunderlike weapon that burns ! don't know if this is what your looking for,but i think it could be easy modify!
3D-Gamestudio A8 - Commercial
|
|
|
Re: LASER Particle [C-SCRIPT]
[Re: Rei_Ayanami]
#283439
08/07/09 18:58
08/07/09 18:58
|
Joined: Jun 2008
Posts: 402 Germany
sebbi91
Senior Member
|
Senior Member
Joined: Jun 2008
Posts: 402
Germany
|
ich glaub er spricht leider kein deutsch!^^ ist meiner Meinung nach aber eins der besten Tutorials überhaubt! Eine englische Variante wäre vieleicht nicht schlecht ^^
Last edited by sebbi91; 08/07/09 18:59.
3D-Gamestudio A8 - Commercial
|
|
|
Re: LASER Particle [C-SCRIPT]
[Re: 3run]
#283471
08/07/09 22:08
08/07/09 22:08
|
Joined: Nov 2005
Posts: 1,007
jigalypuff
Serious User
|
Serious User
Joined: Nov 2005
Posts: 1,007
|
Would one of our german members be good enough to translate this?
Why does everyone like dolphins?
Never trust a species which smiles all the time!
|
|
|
Re: LASER Particle [C-SCRIPT]
[Re: 3run]
#283531
08/08/09 10:03
08/08/09 10:03
|
Joined: Jul 2002
Posts: 4,436 Germany, Luebeck
Xarthor
Expert
|
Expert
Joined: Jul 2002
Posts: 4,436
Germany, Luebeck
|
The following code assumes that the direction of the weapon is the same as the default view's (camera). Furthermore you need a small bitmap which is used for your laser beam:
bmap laserAim_map = "myLaserAimBitmap.bmp";
var laserAim_status = 0;
function effect_LaserAim()
{
my.alpha = 60;
my.bmap = laserAim_map;
my.move = on;
my.bright = on;
my.beam = on; // if beam doesn't look good, try my.streak = on; instead
my.lifespan = 1;
}
function toggle_LaserAim()
{
laserAim_status = !laserAim_status;
while(laserAim_status)
{
// Assumption: laser_pos is a vector which represents the current position
// of the laser beam start
vec_set(temp,vector(10000,0,0)); // length of your laser beam
vec_rotate(temp,camera.pan);
effect(effect_LaserAim,1,laser_pos,temp);
wait(1);
}
}
NOTE: not tested, not sure if it works
|
|
|
Re: LASER Particle [C-SCRIPT]
[Re: 3run]
#283532
08/08/09 10:06
08/08/09 10:06
|
Joined: May 2008
Posts: 2,113 NRW/Germany
alibaba
Expert
|
Expert
Joined: May 2008
Posts: 2,113
NRW/Germany
|
use the draw_line3d funcvtion. it makes a laser . read in the manual . everything is tghere explained.
EDIT: oh sorry i´ve overlooked the [c-script] . then don´t use my way. use the ones above me.
Last edited by alibaba; 08/08/09 10:08.
|
|
|
|