0 Members and 1 Guest are viewing this topic.
function OnCommand(Launcher: byte; Damage: integer): integer;var Lx,Ly,Ld: single;begin if Text = '/javalin' then begin Lx := GetPlayerStat(Launcher,'X'); Ly := GetPlayerStat(Launcher,'Y'); Ld := GetPlayerStat(Launcher,'Direction'); if (GetPlayerStat(Ld) = '>') then begin WriteLn('Javalin Launched!'); CreateBullet(Px+1000,Vy+10000,5,-250,1500,5,Launcher); else WriteLn('Javalin Launched!'); CreateBullet(Px-1000,Vy+10000,-5,-250,1500,5,Launcher); end; end; Result := Damage;end;
Last year, I dreamt I was pissing at a restroom, but I missed the urinal and my penis exploded.
1) Its javelin. J A V E L I N2) THIS IS A REAL MISSILEhttp://enesce.com/help/Use this to learn what does what make.It would need CreateBullet(), for which i reccomend that you look at airstrike scripts, but if you want that it looks like a missile use 2)Also, 2) doesnt hit colider polygons, which is the only problem.
function OnCommand(Launcher: byte; Damage: integer): integer;
Ld := GetPlayerStat(Launcher,'Direction');
WriteLn('Javalin Launched!');
CreateBullet(Px-1000,Vy+10000,-5,-250,1500,5,Launcher);
Result := Damage;
1) Code: [Select]function OnCommand(Launcher: byte; Damage: integer): integer; -> wtf is that? Mix of OnPlayerDamage and OnCommand?2) Code: [Select]Ld := GetPlayerStat(Launcher,'Direction'); -> Ld is single, and that func returns char3) Code: [Select]WriteLn('Javalin Launched!'); -> I think you don't know what this func does...4) Code: [Select]CreateBullet(Px-1000,Vy+10000,-5,-250,1500,5,Launcher); -> bigger Y = lower5) Code: [Select]Result := Damage; -> thats connected with 1)
2: Confused