Jump to content

Photo

something wrong with my code?


  • Please log in to reply
1 reply to this topic

#1
Ifrit66

Ifrit66

    Stranger

  • Members
  • Pip
  • 4 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",

#2
Ifrit66

Ifrit66

    Stranger

  • Members
  • Pip
  • 4 posts
NEVERMIND :D i just figgured out what was wrong and got it in the game with a few others without any help and i have no bloody idea what im doing!!!




IPB skins by Skinbox
Page loaded in: 0.928 seconds