|
FAQ
• Search • Login
|
|
Page 1 of 1
|
[ 6 posts ] |
|
How to make stuff... infront of other stuff...
Author |
Message |
Kettenkrad
Joined: Mon Oct 25, 2010 5:51 am Posts: 1198 Location: Sydney
|
How to make stuff... infront of other stuff...
I'm very very new to this .lua stuff... Well, I have no idea how, but I squashed some of MDC's gunship turret .lua, Mehman's U-Boat .lua, and the Base.rte train .lua into one file. Guess what I'm making? No? - Understandable... An AC-130-like gunship. My problem is that the turret is behind the dropship, any special line or something I need to add to make it appear in-front of the gunship?
|
Fri Dec 24, 2010 4:17 am |
|
|
Grif
REAL AMERICAN HERO
Joined: Sat Jan 27, 2007 10:25 pm Posts: 5655
|
Re: How to make stuff... infront of other stuff...
change the type of particle it is
craft draw in front of actors which draw in front of particles
basically.
What I'd suggest, if you have the knowhow to do the lua-offsets, is to make the turret the sprite of the actual acraft, and then have the main body be an attachable that has its position constantly updated.
|
Fri Dec 24, 2010 7:30 am |
|
|
Kettenkrad
Joined: Mon Oct 25, 2010 5:51 am Posts: 1198 Location: Sydney
|
Re: How to make stuff... infront of other stuff...
Thanks Grif, I'll give it a go.
EDIT: Way to difficult for me, is there anything at all that appears infront of a dropship?
In addition, on a different topic: Is it possible to pick an actor/weapon sprite depending on which scene it's playing on. Say I made desert, arctic, and generic camo for a gun, and I loaded Tundra 1, could I make it choose the arctic sprite? Or have three differently sprited actors, and have it choose one?
|
Fri Dec 24, 2010 7:54 am |
|
|
findude
Joined: Tue Dec 12, 2006 3:10 pm Posts: 495 Location: Uncertain quantum state
|
Re: How to make stuff... infront of other stuff...
Just checking, are we sure that it's the class type and not the atomgroup depths at work?
|
Fri Dec 24, 2010 1:58 pm |
|
|
Roast Veg
Data Realms Elite
Joined: Tue May 25, 2010 8:27 pm Posts: 4521 Location: Constant motion
|
Re: How to make stuff... infront of other stuff...
Kettenkrad wrote: Is it possible to pick an actor/weapon sprite depending on which scene it's playing on. Say I made desert, arctic, and generic camo for a gun, and I loaded Tundra 1, could I make it choose the arctic sprite? Or have three differently sprited actors, and have it choose one? Yes you could, but you'd have to drop the gun for it to change. Have each different camo as a frame of the gun's sprite, then write some fancy Lua to check the scene name and switch to the relevant frame.
|
Fri Dec 24, 2010 5:04 pm |
|
|
Grif
REAL AMERICAN HERO
Joined: Sat Jan 27, 2007 10:25 pm Posts: 5655
|
Re: How to make stuff... infront of other stuff...
findude wrote: Just checking, are we sure that it's the class type and not the atomgroup depths at work? atomgroup depth affects physics; draw order is hardcoded by class at least, such is the extent of my knowledge, and I promise it is based on practical experience.
|
Fri Dec 24, 2010 8:20 pm |
|
|
|
|
Page 1 of 1
|
[ 6 posts ] |
|
Who is online |
Users browsing this forum: No registered users |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot post attachments in this forum
|
|