When i add in my map a driving truck i have a problem i can walk trought it. only not where there is a brush from script object that the truck is targeting. I found this in the original maps the script object so i maked it to.
opel1 = the truck
opel1.target = what opel1 is targeting in this case the script object
opel1start.origin = where the truck will teleportate to
opel1path = the first info_vehicle point
i want when my truck drive i can't walk trough it, i tried some things but always i can walk trough it but not in the middle area. The place where i can't walk trough is where in radiant the blue box from the truck. The script object is something i tried from the original maps but it don't works.
Download spearhead SDK and copy truck collision from one of example maps...then set it in script, setcollisionentity.. and remove "truck solid" line!! Better never use it for vehs'..
Never made vheic on maps so I'm not sure, but why solid doesn't works? I use it to spawn solid objects and worked everytime..
local.myobject.tergetname = name
is the same of local.object targetname name
..so you can use $name instead of local.object..isn't it?! well in this case if he use $opel1 he must have declared it before..of course the truck must be spawned with the name of local.opel1..
if he do not declare the target of the targetname then $ oper won't work at all!!
PS: what I said will be useless in case the $opel1 tn is one of these already existent, I mean something like $player or if $opel1 is set up in radiant! lol
Solid make trucks bounding box solid... setcollisionentity copy and bind the script objects to truck... yes, custom-shape script object that can be made from several brushes with diffrent textures, for truck cargo clip wood, for window glass clip, for metal metal clip etc
I know what local.myobject.tergetname = name makin, but it has non sense it dietie~~ script...
custom-shape script object that can be made from several brushes with diffrent textures, for truck cargo clip wood, for window glass clip, for metal metal clip etc
humm I didn't inderstood it was custom..also I dunno if there's a stock one lol!
I know what local.myobject.tergetname = name makin, but it has non sense it dietie~~ script...
..so how can he use $ if it's not declared the tergetname?
Never found a targetname of a entity that was not declared with the targetname command..
Download spearhead sdk, search the examples for truck collision entity (its probably in somethin called test_ai), select it, copy and place it somewhere on your map... and use the script
I assume you got vehicle/opeltruck targetnamed opel1 and info_vehiclepoint opel1path... <targetname_of_copied_collision> is targetname of collision copied from example...