Thread: [Tutorial] Random questions thread
View Single Post
Old 04-15-2012, 05:03 PM   #127   Add To Ignore List  
Werebull
 
NHunter's Avatar
 
Joined: Feb 2012
 
NHunter is offline
Default Re: Random questions thread

Quote:
Originally Posted by Qynchou View Post
when i face them when therye spawning it shows animation, if they spawn behind my back they just appear, no spawn sound
gonna work on the level xD gonna try and bring back some feel from classics

edit: well im a noob especially when it comes to coding or stuff like this, can anyone tell me how to seperate 2 different functions? as in if i want to have 2 seperate spawn on pick commands in the script, 2 different items
Hm... I don't have any anim. But that may be because I'm running the game (and editor) on the lowest possible graphical settings (my videochip is only 128 MB). Maybe on higher settings there is some eye-candy.

Now onto the in-edit question... Just have two separate handlers for those pick events:

Code:
RunHandled(

  function()
    WaitForever()
  end,

On(Any(Event(item1.Picked), Event(item1.FailedPick))),
  function()
    -- add some stuff that happens when first item is picked here
  end,

On(Any(Event(item2.Picked), Event(item2.FailedPick))),
  function()
    -- add some stuff that happens when second item is picked here
  end

)
__________________
NHunter | NH | 夜狩猟家 | 灰色天使
  Reply With Quote