Jump to content

AggrorJorn

Members
  • Posts

    4,816
  • Joined

  • Last visited

Posts posted by AggrorJorn

  1. I thank that is the way Leadwerks works. Or at least in the sense that Leadwerks doesn't scan your code to see what kind of files you load. For compiled C++ that would also be pretty difficult to do. It only exports files that are loaded/referenced in the editor

  2. The item you are spawning is stored in self.spawn. 

    You could attach a script and check if a boolean has been set to this spawned item. You can than access it like this:

    Quote

    self.spawn.script.pickedUp

    Your If statement has to be extended as well. Something like

    Quote

    if Time:Millisecs() > self.spawntime + (self.spawnrate * 1000) then

        if self.spawn ~= nil and self.spawn.script.pickedUp then

     

  3. Yeah I have been bitten by this problem several times. What you can do to solve this is add a bool variable IsInit at the end of each start function and set it to true when the end of the start functions has been reached. When you are in a child, check if the parent has this IsInit variable set to true. If not, then perform an init function on the parent first.

    • Thanks 1
  4. On 12/13/2017 at 10:40 AM, Core said:

     Player is one of these "truckers" and tries to make a living. Gameplay would involve maintaining and upgrading your vehicle, managing your assets etc. Vehicles should have lifelike physics (it is up to player to decide if he thinks he can haul shipment of heavy machinery from here to there considering the route and vehicle he has, for example) and very detailed, sim like approach to vehicle systems.

    Sounds like truck simulator in space and I like it. Especially with VR.

  5. 53 minutes ago, psygnosys said:

    How can you see my character is animated and with the sequences separated, this is very simple to do and now?

    As your screenshot indicates, your character has animation sequences. You can play these sequences to test it out. 

    The AI script plays the animation based on a given state. You probably need to edit the name of animation sequences in that script so that it matches with the animation sequence names of your model. Look like for lines like this:

    model:PlayAnimation("Run",0.05)

    For instance: your animation is called 'walk' .

    53 minutes ago, psygnosys said:

    How do I get him to walk in my direction?

    I don't know the AI script out of my head, but i believe the physics character controller is probably setting you as a target, when the player is near the enemy. This means the rotation is handled for you by the character controller. The 'sliding' you are experiencing is probably because of the point above. It is trying to play an animation that it doesn't know. Try replacing it with one of your sequences.

    53 minutes ago, psygnosys said:

    attack me die when your life comes to an end?

    The translation is a little difficult for me to understand here. Can you describe this one a little bit more? 

  6. For animation

    • So you have your character in the model editor and can see all the animations playing? 
    • Next step would be to load your model in the scene via code or drag it in the scene.
    • You could for instance attach a script to this model and use the animation commands to play animation.
    • If you look at the FPS template you can find out how the crawler does animation. It basically plays an animation based on its current state.
    • Have you tried googling it? Because the first result is a youtube video. it is slightly outdated but should point you in the direction that you need to follow to start playing your character animation.

     

    • Like 1
  7. Thanks for reporting.

    The spectator script used in Splinetools is the same as the spectator script that comes with a default leadwerks project in Scripts\Objects\Player\Spectator.lua

    Stable branch doesn't have this.

    Can you make a bug report in the bug section?

    Tldr: in beta branch create a terrain and camera. Attach spectator script from the default scripts. Fly against the terrain when running the game.

×
×
  • Create New...