Jump to content

something wrong with my code?


Ifrit66

Recommended Posts

Hey im trying to implement a slime from the slime variation pack into my game and when i put the code into the objects.lua file i get this error in the editor

mod_assets/scripts/objects.lua:125: unexpected symbol near '<eof>'

 

soo i dont code ... and im trying to figgure it out but i have no bloody idea lol

here is the code i am useing

 

defineObject{

name = "bone_slime",

class = "Monster",

model = "mod_assets/models/monsters/bone_slime.fbx",

meshName = "green_slime_mesh",

animations = {

idle = "assets/animations/monsters/slime/green_slime_idle.fbx",

moveForward = "assets/animations/monsters/slime/green_slime_move_forward.fbx",

moveBackward = "assets/animations/monsters/slime/green_slime_move_backward.fbx",

strafeLeft = "assets/animations/monsters/slime/green_slime_strafe_left.fbx",

strafeRight = "assets/animations/monsters/slime/green_slime_strafe_right.fbx",

turnLeft = "assets/animations/monsters/slime/green_slime_turn_left.fbx",

turnRight = "assets/animations/monsters/slime/green_slime_turn_right.fbx",

attack = "assets/animations/monsters/slime/green_slime_attack.fbx",

attackBack = "assets/animations/monsters/slime/green_slime_attack_back.fbx",

attackLeft = "assets/animations/monsters/slime/green_slime_attack_left.fbx",

attackRight = "assets/animations/monsters/slime/green_slime_attack_right.fbx",

getHitFrontLeft = "assets/animations/monsters/slime/green_slime_get_hit_front_left.fbx",

getHitFrontRight = "assets/animations/monsters/slime/green_slime_get_hit_front_right.fbx",

getHitBack = "assets/animations/monsters/slime/green_slime_get_hit_back.fbx",

getHitLeft = "assets/animations/monsters/slime/green_slime_get_hit_left.fbx",

getHitRight = "assets/animations/monsters/slime/green_slime_get_hit_right.fbx",

fall = "assets/animations/monsters/slime/green_slime_get_hit_front_left.fbx",

},

 

moveSound = "slime_walk",

attackSound = "slime_attack",

hitSound = "slime_hit",

dieSound = "slime_die",

hitEffect = "hit_flame",

capsuleHeight = 0.2,

capsuleRadius = 0.7,

collisionRadius = 0.8,

health = 500,

immunities = { "fire", "assassination", "backstab" },

sight = 2.5,

allAroundSight = true,

attackPower = 40,

accuracy = 30,

coolDown = { 1, 5 },

evasion = -20,

movementCoolDown = 5,

noRecoilInterval = { 0.1, 0.5 },

exp = 230,

healthIncrement = 50,

attackPowerIncrement = 5,

brain = "Slime",

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...