I am trying to spawn a script object into a map to fix a problem with a stock map. The trouble is, the object is Solid for the player and all weapons apart from rifles and MG. It's really weird. You cannot shoot Pistol, SMG or rockets through it. And grenades bounce back. How do I stop Rifles and MG's?
Any help would be greatly appreciated. This is the script so far that I am using...
local.Rock = spawn script_object
local.Rock model "static/rock_large.tik"
local.Rock.origin = ( 912.00 624.00 8.00 )
local.Rock.angles = (0 0 0)
local.Rock.scale = 0.95
local.Rock solid
local.Rock immune bullet
local.Rock immune fast_bullet
local.Rock immune bash
local.Rock immune mg
local.Rock immune explosion
Non-Solid Objects spawned from scripts
Moderator: Moderators
Non-Solid Objects spawned from scripts
<b>{D.D}C.S.M.PvtArmy{2nd}</b>
<b>"Long live the fighters!"</b>
<b>"Long live the fighters!"</b>
immune
Try this, take out all that "immune" stuff and add this line.
local.Rock solid
You can also try spawning the model without making it a script_object.
local.rock = spawn static/rock_large.tik
That model has its own clip map, so it should be immune if you spawn it without making it a script_model or script_object.
local.Rock solid
You can also try spawning the model without making it a script_object.
local.rock = spawn static/rock_large.tik
That model has its own clip map, so it should be immune if you spawn it without making it a script_model or script_object.
Looking at the .MAP file for ROCK_LARGE, it seems that it only has player clips and not weapon clips. I have tried updating the orginal .MAP file for the rock and then spawning it, but I think the .MAP file only works when you compile the map. I could be wrong but that is what seems to happen.
Does anyone actually know if the .MAP file is used when spawning from a script?
Thanks so far anyway.
Does anyone actually know if the .MAP file is used when spawning from a script?
Thanks so far anyway.
<b>{D.D}C.S.M.PvtArmy{2nd}</b>
<b>"Long live the fighters!"</b>
<b>"Long live the fighters!"</b>
