rooben commited on
Commit
72c6a84
·
verified ·
1 Parent(s): 2ede865

Update cubzh.lua

Browse files
Files changed (1) hide show
  1. cubzh.lua +19 -0
cubzh.lua CHANGED
@@ -294,6 +294,25 @@ local skills = {
294
  }
295
  }
296
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
297
  local locations = {
298
  {
299
  name = "Scientist Island",
 
294
  }
295
  }
296
 
297
+ Client.SpawnSquirrel = function()
298
+ if Player.Motion.X == 0 and Player.Motion.Z == 0 then
299
+ -- Player is standing still
300
+ sfx("squirrel_chirp", { Position = Player.Position, Volume = 0.5 })
301
+
302
+ -- Assuming you have a function to spawn entities
303
+ local squirrel = SpawnEntity("Squirrel", Player.Position + Vector3.new(0, 0, 5))
304
+
305
+ gigax:action({
306
+ name = "FLYINGSQUIRREL",
307
+ description = "Spawn a squirrel nearby",
308
+ parameter_types = {},
309
+ action_format_str = "A curious squirrel appeared near {protagonist_name}.",
310
+ })
311
+
312
+ print("Squirrel spawned near player")
313
+ end
314
+ end
315
+
316
  local locations = {
317
  {
318
  name = "Scientist Island",