Page 1 of 1

Two Jawas as one character. Impossible?

Posted: Tue Dec 18, 2007 7:48 am
by Daniel0605
I know this is a crazy idea, but what I want is to create is two Jawas as one character. You control one, while the other follows. Kind of like the ice climbers in Super Smash Bros. Melee. On a scale of 1-10, with 10 being most impossible, how impossible do you think this is? If you think there's any way it might be possible, please post how you think you would do it. :jawa:

Re: Two Jawas as one character. Impossible?

Posted: Tue Dec 18, 2007 11:01 am
by [RDH]Zerted
You can't control two characters, but if you wanted to make the second a friendly AI then it would work. Stick the other guy on a team by himself. Set that team as an ally to yours. Give that team the AI goal of following your character. That AI unit will now try to closely follow you almost where ever you go.

Re: Two Jawas as one character. Impossible?

Posted: Tue Dec 18, 2007 3:21 pm
by wazmol
say, zer' what would the line be to make an ai follow you around?

Re: Two Jawas as one character. Impossible?

Posted: Sat Dec 22, 2007 6:35 am
by [RDH]Zerted
AddAIGoal(<ai team>, "follow", <goal weight>, <character/object/entity to follow>)

A real use example:

Code: Select all

AddAIGoal(BODYGUARDS, "Follow", 300, agroGeonosianIndex)
That says the BODYGUARD team should follow the agroGenonosianIndex character. The goal weight is converted into a percentage of the largest goal weight, then that percentage of the AI on the team attempts to do that goal.

More code to better understand what agroGeonosianIndex is:

Code: Select all

local agroGeonosianIndex = GetTeamMember(BOSS, 0)
local agroGeonosianUnit = GetCharacterUnit( agroGeonosianIndex )