launch_spike(self.origin + self.view_ofs + v_up * -8 + v_right * ox, dir)
try that
try that
switch(engine) { case "darkplaces": //do a bunch of stuff break; default: //this engine doesn't support this break; }
//R00k this is a BUG, should be org not self.origin! //LightningDamage (self.origin, trace_endpos + v_forward*4, self, 30); LightningDamage (org, trace_endpos + v_forward*4, self, 30);
void([color="DarkOrange"]vector org[/color], vector dir) launch_spike= { [COLOR="Lime"]//org currently equals (self.origin+'0 0 16'+v_right*ox)[/COLOR] }; void(float ox) W_FireSpikes= { [COLOR="Lime"]//there is no org in this function[/COLOR] launch_spike([color="DarkOrange"]self.origin+'0 0 16'+v_right*ox[/color], some_var); };
float a = 20; void(float x) a_func = { local float y = 100; }; void() test = { local float z = x+y; //error: wtf is an x and a y I can't find that local float z = a; //ok };
Comment