Search

Search found 101 matches

by kalda341
24 Feb 2011, 07:45
Forum: Lua Scripts
Topic: Linked Units
Replies: 10
Views: 4110

Linked Units

Is it possible to have it when you build a powerplant (or a turret like in c&c 3) you build a hub, then several nodes coming off it (preferably joint by wires or something). If you destroy the hub, all nodes are destroyed too. If you destroy a node, only that node is destroyed.
by kalda341
21 Feb 2011, 09:21
Forum: Art & Modelling
Topic: Cursors
Replies: 1
Views: 1020

Cursors

Is there a way to have a certain part of custom cursors the color of the side you are playing as (like the alpha channel in textures)? Or a way to have different cursors for different factions?
by kalda341
14 Feb 2011, 03:49
Forum: Lua Scripts
Topic: Getting Units to Attack without Turret
Replies: 22
Views: 2153

Re: Getting Units to Attack without Turret

bobthedinosaur wrote:use cob heading
Why?
by kalda341
12 Feb 2011, 21:02
Forum: Lua Scripts
Topic: Getting Units to Attack without Turret
Replies: 22
Views: 2153

Re: Getting Units to Attack without Turret

There is Spring.SetUnitRotation (unitID, rotx, roty, rotz) http://springrts.com/wiki/Lua_SyncedCtrl but it changes rotation instantly. Also not sure how good it plays together with ie pathfinding. To animate is (so it's not instant) would it work if I: Spring.UnitScript.GetPieceRotation and then so...
by kalda341
12 Feb 2011, 10:38
Forum: Lua Scripts
Topic: Getting Units to Attack without Turret
Replies: 22
Views: 2153

Re: Getting Units to Attack without Turret

bobthedinosaur wrote:Why doesn't he just do a check in the aim script for the angle to the target, and if it isn't in the angle wanted tell it to change the units heading to point at the target?
That's kinda what I want. What is the callout for changing heading?
by kalda341
10 Feb 2011, 19:11
Forum: Lua Scripts
Topic: Getting Units to Attack without Turret
Replies: 22
Views: 2153

Re: Getting Units to Attack without Turret

When you do function script.Create() Spring.Echo ("unit " .. unitID .. " was created!") end Does that give an error too? Isnt the idea of turret=false that Springs pathfinder aims the unit at the target? ie if you look at fighter planes in the *a Mods, they also turn towards the...
by kalda341
09 Feb 2011, 07:00
Forum: Spring Tanks
Topic: Do bitches know about mah Tanks? I bet no.
Replies: 56
Views: 31481

Re: Do bitches know about mah Tanks? I bet no.

That is a really fun game. Do you mind if I play around with some of your widgets and gadgets with my game? I would love a tutorial on the menu!
by kalda341
07 Feb 2011, 07:43
Forum: Lua Scripts
Topic: Getting Units to Attack without Turret
Replies: 22
Views: 2153

Re: Getting Units to Attack without Turret

Forboding Angel wrote:
kalda341 wrote:but i cannot get the unit to attack with turret = false.
Needs moar tolerance (1000 - 5000 should do the trick nicely).
The unit still cannot attack.
by kalda341
07 Feb 2011, 05:25
Forum: Spring Tanks
Topic: Do bitches know about mah Tanks? I bet no.
Replies: 56
Views: 31481

Re: Do bitches know about mah Tanks? I bet no.

http://www.threadbombing.com/data/media/3/calm-down.jpg and put your bras back on. It could use some tweaking of the death animations so that more pieces explode and shatter instead of flying whole. I think whole flying pieces helps players a bit to tell what unit just exploded. I kinda like how th...
by kalda341
05 Feb 2011, 23:47
Forum: Lua Scripts
Topic: Getting Units to Attack without Turret
Replies: 22
Views: 2153

Re: Getting Units to Attack without Turret

I figured you want a script that allows an human type unit to swivel its torso to aim but not so much that it can do a scene from the exorcist and break its back. :( No, the whole body was going to rotate. I was thinking about that at first, but the torso is near the top of the model hierarchy. The...
by kalda341
05 Feb 2011, 22:37
Forum: Lua Scripts
Topic: Getting Units to Attack without Turret
Replies: 22
Views: 2153

Re: Getting Units to Attack without Turret

Maybe I'm missing the point altogether, but why not just give infantry a limited firearc with the usual engine tags? I don't really understand what you mean. I assume you also don't understand what I mean (fair enough, I've done a pretty bad job of explaining it). The easiest solution to what I wan...
by kalda341
05 Feb 2011, 22:31
Forum: Lua Scripts
Topic: Getting Units to Attack without Turret
Replies: 22
Views: 2153

Re: Getting Units to Attack without Turret

knorke wrote:
work out how to set the unitID to be the unit the script is for.
its just unitID ;)
http://answers.springlobby.info/questio ... own-unitid
I tried that, but I get a bad unitID error.
by kalda341
05 Feb 2011, 21:30
Forum: Lua Scripts
Topic: Getting Units to Attack without Turret
Replies: 22
Views: 2153

Re: Getting Units to Attack without Turret

The spring.setunitrotation would probably be helpful if I could work out how to set the unitID to be the unit the script is for. But yes, it would probably be better if I could just remove the whole turret script.
by kalda341
05 Feb 2011, 19:16
Forum: Lua Scripts
Topic: Getting Units to Attack without Turret
Replies: 22
Views: 2153

Re: Getting Units to Attack without Turret

Ultimately i want to remove the whole turret script, but if turret = false the unit won't attack.
by kalda341
05 Feb 2011, 07:32
Forum: Lua Scripts
Topic: Getting Units to Attack without Turret
Replies: 22
Views: 2153

Getting Units to Attack without Turret

The following script works for infantry when turret = true in the weapon defs local flare, lf, ula, head, lrl, torso, gun, lra, lll, ura, lla, url, ull, pelvis, base, rf = piece('flare', 'lf', 'ula', 'head', 'lrl', 'torso', 'gun', 'lra', 'lll', 'ura', 'lla', 'url', 'ull', 'pelvis', 'base', 'rf') loc...
by kalda341
04 Feb 2011, 02:17
Forum: Art & Modelling
Topic: Can someone tell me what elmos is?
Replies: 21
Views: 3926

Can someone tell me what elmos is?

In the lua callout page there are references to elmos which I have never heard of: destination: number (elmos, or radians) speed: number (elmos, or radians per second) In my animation I have this: Turn( lll, x_axis, -5, 5 ) But it isn't really very helpful because I have no idea what units this is i...
by kalda341
01 Feb 2011, 01:58
Forum: Art & Modelling
Topic: Animation in Upspring
Replies: 11
Views: 2971

Re: Animation in Upspring

Thanks.
by kalda341
31 Jan 2011, 06:54
Forum: Art & Modelling
Topic: Animation in Upspring
Replies: 11
Views: 2971

Animation in Upspring

It would be very appreciated if someone could link me to or make a tutorial on animation in upspring (or any other relatively easy way to create lua animations). I've sorted out pretty much every other part of making a spring game but find it insanely difficult to animate models. Thanks in advance.
by kalda341
23 Dec 2010, 22:52
Forum: Lua Scripts
Topic: Iceui Crash
Replies: 2
Views: 398

Re: Iceui Crash

Thanks, that fixed it.

Go to advanced search