Jump to content

Marleys Ghost

Members
  • Posts

    2,157
  • Joined

  • Last visited

Posts posted by Marleys Ghost

  1. rolleyes.gif ... and what if Tyler decides to spend his vacation doing something else? I agree with Pixel and Ken, make a start yourself its all good experience.
  2. Double click the model in the right hand window (the main model not an instance of it), if it opens an empty lua file then add to that empty file:

     

    require("scripts/class")
    local class=CreateClass(...)
    

     

    save and exit the lua editor, now instances of that model should have a poperty dialogue. (you may have to close an re-open the editor)

  3. Well, if you are changing the anim state by collision yes/no then unless there is constant contact maybe you are switching back and forth between the two anim states? As I said on your other thread its hard to speculate without demo/code/video.

  4. which pivot? you seem to be pointing two things at the player? why not badguy.rotation.y?

     

    PointEntity( TEntity entity1, TEntity entity2, int axis=3, flt rate=1, flt roll=0 )

     

    PointEntity(badguy, player,3,1.0)
    
    If stopanim2 = False
     If EntityDistance(jane,badguy) > 2.0 And EntityDistance(jane,badguy) < 16.0
    	  bg_framebegin = 77
    	  bg_frameend = 115
    	  animate_badguy() ' badguy walk
    	  UpdateController(bg_control,badguy.rotation.y,3.0,0, 0, 1,400,0)
     Endif
    EndIf
    
    

     

     

     

     

    I try and avoid parenting.

  5. As the error says Cass, "can't convert from tvec3 to float" ... turn is a Vec3 but the UpdateController wants a float, so try turn.y which is the y value of the Vec3

×
×
  • Create New...