Re: how do you attach actors to each other?
I'm not sure if you can simply use "AddAttachable = Actor" on the .ini of the actor, but what has been done multiple times is using Lua for it.
A simple script on the main actor, for example,
Code:
function Create(self)
self.Turret = CreateACrab("My OP turret");
self.Turret.Team = self.Team;
self.Turret.Pos = self.Pos + Vector(X,Y); --Set X,Y to the corresponding position you want the turret on
MovableMan:AddActor(self.Turret);
end
function Update(self)
--Make the position of the turret flip if the main actor flips
if self.HFlipped then
self.flip = -1;
else
self.flip = 1;
end
if self.Turret.Health > 0 then
self.Turret.Pos = self.Pos + Vector(X*self.flip,Y);
end
end
This is a very simple script for this. I don't see any reasons of why it shouldn't work, but it definately can be improved to work better.
Also, we have a mod help section to actually help other users, so you should always ask for help if you need some!