Bombs + tank

Post your scripting questions / solutions here

Moderator: Moderators

Post Reply
User avatar
martijn_NL
Map Reviewer
Posts: 156
Joined: Mon Apr 14, 2003 5:33 pm
Location: The Netherlands
Contact:

Bombs + tank

Post by martijn_NL »

I want to make a tank in mp-level drive, no problem. But not when that need to be blown wtih a bomb. The problem is the tank move but the bomb doen't move. Does someone know how to make the bomb travel with the tanlk
Mapping 4 life
User avatar
Alcoholic
General
Posts: 1470
Joined: Sat May 17, 2003 5:57 am
Location: California
Contact:

Post by Alcoholic »

since its a vehicle, you cant bind things directly, but you can glue a 'parent' and bind stuff to the 'parent'

EXAMPLE:

Code: Select all

local.parent = spawn script_origin
local.parent glue $mytank
$mytank.parent = local.parent

//yata yata yata

$mybomb bind $mytank.parent
User avatar
martijn_NL
Map Reviewer
Posts: 156
Joined: Mon Apr 14, 2003 5:33 pm
Location: The Netherlands
Contact:

Post by martijn_NL »

The tank moves correctly but the bomb disapears (when the tank drives), instead of standing still while the tank is moving
Mapping 4 life
Post Reply