Jump to content

Other leifs


Recommended Posts

Hello guys,

I know there is different leif sizes, but the debug code just spawns the normal one. I'm having a really bad time trying to figure this out. Anyone out there, can you help meee? 

Thanks!

P.S: I want this, because I'm playing with an monster arena, where I put bosses to fight each other. Really need other leif sizes.

Link to comment
https://forums.kleientertainment.com/forums/topic/73027-other-leifs/
Share on other sites

lol, sorry! I was assuming that everyone knew that D=

Anyway, yes. I want to spawn a GIGA BIG Treeguard, using the debugspawn: "leif" just summon the normal one. Really, this is stupid, Why can't we spawn it directly? I tried something like: "leif.components:SetScale = 3" and nothing... u.u

It would be this in console: local leif = c_spawn("leif"); leif.Transform:SetScale( 3, 3, 3)

This will not change the stats (I think, might be special case for Tree Guard.

which you can just add on to the existing thing above with things like: leif.components.combat:SetDefaultDamage(number)

You might have to do some digging into leif.lua and tuning to get the exact values you want. Leif does have a function for automatically scaling the damage and stuff but unfortunately I'm not aware of how to make functions run on other objects in console.

19 hours ago, DarkKingBoo said:

It would be this in console: local leif = c_spawn("leif"); leif.Transform:SetScale( 3, 3, 3)

This will not change the stats (I think, might be special case for Tree Guard.

which you can just add on to the existing thing above with things like: leif.components.combat:SetDefaultDamage(number)

You might have to do some digging into leif.lua and tuning to get the exact values you want. Leif does have a function for automatically scaling the damage and stuff but unfortunately I'm not aware of how to make functions run on other objects in console.

Thanks! (now that I'm looking on it, I feel pretty stupid. xD) That's better than nothing, I just need to look the right damage and gg. 

-------------------------------------------------------------------------EDIT---------------------------------------------------------------------

Ok, Thanks to you DarkKingBoo, I managed to get the perfect code for a legit big Treeguard. Thank you very much.

Quote

local leif = c_spawn("leif"); leif.Transform:SetScale( 1.25, 1.25, 1.25); leif.components.combat:SetDefaultDamage(186); leif.Physics:SetCapsule(.5 * 1.25, 1); leif.DynamicShadow:SetSize(4 * 1.25, 1.5 * 1.25); leif.components.locomotor.walkspeed = (1.9); leif.components.combat:SetRange(3.75); leif.components.health:SetMaxHealth(3750)

 

Archived

This topic is now archived and is closed to further replies.

Please be aware that the content of this thread may be outdated and no longer applicable.

×
  • Create New...