Page 2 of 2

Posted: Fri Jul 06, 2007 11:04 pm
by [RDH]Zerted
Use can use the SetProperty() methods to change weapons, skins, unit abilities, the team, the perceived team, any ODF value, etc... You can use these to create your own, custom disguise weapons through the lua.

Examples:
Set<target game type>Property( <target>, "Team", 2 ) --puts target on team 2
Set<target game type>Property( <target>, "PerceivedTeam", 1 ) --makes target look like on team 1, but really still on team 2
where <target game type> = (nothing), Class, Object, or Entity

Other methods of intrest:
SelectCharacterTeam() --change a character's team
SelectCharacterClass() --change a character's unit class
SpawnCharacter() --spawn a character

---------------

You could track a certain character class, lets say a pilot unit, using OnCharacterSpawn(). When a human spawns as this unit, you could force spawn an AT-ST and force the player to enter the new vehicle. If the player tried to leave the vehicle, you could kill them both. This would give you the effect of spawning as an AT-ST. Just use a different pilot character for each type of vehicle you want to spawn as.

Posted: Sat Jul 07, 2007 6:34 am
by Alpha-17
Ok I can give somebody the disguise kit ... As a weapon ??
And how could I change something , eg a clone with a rock ? Should I write something in the disguise-odf ?

Posted: Sat Jul 07, 2007 10:51 am
by [RDH]Zerted
I don't know anything about the shipped disguise kit. I'm saying you could make a weapon (through mostly lua coding) that changes something about the unit who fired it (like its skin and its perceived team, which is what the disguise kit is supposed to do?) or (I think) the unit that got hit by it.

A clone with a rock... What does that mean?