Barrels
Posted: Fri Aug 08, 2003 5:31 pm
In many barrels u have got barrels then can be blown when u shoot at it.
I wanted that all so. I maked a barrel and maked it a script model and gave it a targetname: explosive_barrel. I added this line to my script:
exec global/barrel.scr
I shoot at the barrel but id did not explode.
I looked in the console and it said that the code of barrel.scr was not good.
I wanted that all so. I maked a barrel and maked it a script model and gave it a targetname: explosive_barrel. I added this line to my script:
exec global/barrel.scr
I shoot at the barrel but id did not explode.
I looked in the console and it said that the code of barrel.scr was not good.
So i hope someone know a solution for thislocal.self waittill death (global/barrel.scr, 96)
local.self ^
^~^~^ Script Error: invalid waittill death for 'ScriptSlave'
^~^~^ Add the following line to the *_precache.scr map script:
cache models/fx/barrel_gas_destroyed.tik
local.distance = vector_length (local.self.origin - $player.origin) (global/barrel.scr, 115)
local.distance = vector_length (local.self.origin - $player^
^~^~^ Script Error: Field 'origin' applied to NULL listener
local.distance = vector_length (local.self.origin - $player.origin) (global/barrel.scr, 115)
local.distance = vector_length (local.self.origin ^
^~^~^ Script Error: binary '-' applied to incompatible types 'vector' and 'NIL'
local.distance = vector_length (local.self.origin - $player.origin) (global/barrel.scr, 115)
local.distance = ^
^~^~^ Script Error: Cannot cast 'NIL' to vector
if (local.distance <= local.check_distance) //*** inner distance check (global/barrel.scr, 120)
if (local.distance ^
^~^~^ Script Error: binary '<=' applied to incompatible types 'NIL' and 'float'
else if (local.distance <= local.outter_distance) //*** outter distance check (global/barrel.scr, 131)
else if (local.distance ^
^~^~^ Script Error: binary '<=' applied to incompatible types 'NIL' and 'float'
^~^~^ No explosive launch barrels in the level!!