Search

Search found 10 matches

by tino415
04 Mar 2013, 21:16
Forum: Lua Scripts
Topic: [total newbie] GetPiecePosDir(attemp to call global)
Replies: 13
Views: 2034

Re: [total newbie] GetPiecePosDir(attemp to call global)

oh something just come to my mind to consider4: Move command is relative to pieces original position, as is GetPiecePosDir iirc. So if you do local tx,ty,tz,rx,ry,rz = GetPiecePosDir ( rtracks[i+1] ) it will return 0,0,0,0,0,0 Is there a way to get possition relative to parent piece ?? Spring.UnitS...
by tino415
04 Mar 2013, 18:42
Forum: Lua Scripts
Topic: [total newbie] GetPiecePosDir(attemp to call global)
Replies: 13
Views: 2034

Re: [total newbie] GetPiecePosDir(attemp to call global)

oh something just come to my mind to consider4: Move command is relative to pieces original position, as is GetPiecePosDir iirc. So if you do local tx,ty,tz,rx,ry,rz = GetPiecePosDir ( rtracks[i+1] ) it will return 0,0,0,0,0,0 Is there a way to get possition relative to parent piece ?? So I gona ne...
by tino415
03 Mar 2013, 19:50
Forum: Lua Scripts
Topic: [total newbie] GetPiecePosDir(attemp to call global)
Replies: 13
Views: 2034

Re: [total newbie] GetPiecePosDir(attemp to call global)

Here is the mod, it's only for experimenting(i'm doing litle research how many time what takes), unit name is tracker, and it can't by builded, this mod I have only for experimenting, I'm think, there I can use animation script's from spring tanks, but in game i preparing to do I gona need more comp...
by tino415
03 Mar 2013, 12:56
Forum: Lua Scripts
Topic: [total newbie] GetPiecePosDir(attemp to call global)
Replies: 13
Views: 2034

Re: [total newbie] GetPiecePosDir(attemp to call global)

local rtracks = {} local GetPieceTranslation = UnitScript.GetPieceTranslation -- declares all the pieces we'll use in the script. for i=0,42 do local tname = "lt" .. i ltracks[i] = piece (tname) end for i=0,42 do local tname = "rt" .. i rtracks[i] = piece (tname) end function sc...
by tino415
03 Mar 2013, 12:55
Forum: Lua Scripts
Topic: [total newbie] GetPiecePosDir(attemp to call global)
Replies: 13
Views: 2034

Re: [total newbie] GetPiecePosDir(attemp to call global)

FLOZi wrote:I'm a muppet, didn't realise that function is in LUS itself:

Spring.UnitScript.GetPiecePosDir

Only certain functions are automagically localised for LUS scripts:

https://github.com/spring/spring/blob/d ... header.lua
Thank's
by tino415
03 Mar 2013, 09:09
Forum: Lua Scripts
Topic: [total newbie] GetPiecePosDir(attemp to call global)
Replies: 13
Views: 2034

Re: [total newbie] GetPiecePosDir(attemp to call global)

FLOZi wrote:Spring.GetPiecePosDir
I get error "attempt to call field...", :(
by tino415
02 Mar 2013, 23:22
Forum: Lua Scripts
Topic: [total newbie] GetPiecePosDir(attemp to call global)
Replies: 13
Views: 2034

[total newbie] GetPiecePosDir(attemp to call global)

Why I can't use GetPiecePosDir (attemp to call global). Is there any workoaround ?? Or i made any mistake ? local base = piece "base" local ltracks = {} local rtracks = {} -- declares all the pieces we'll use in the script. for i=0,42 do local tname = "lt" .. i ltracks[i] = piece...
by tino415
25 Feb 2013, 21:17
Forum: Modelling & Texturing Tutorials & Resources
Topic: Blender S3O Import/Export + BOS Export Plugin v0.6
Replies: 88
Views: 64723

Re: Blender S3O Import/Export + BOS Export Plugin v0.6

Blender 2.65: "fake_module: addon missing 'bl_info' gives bad performance!:" I get after install this addons...
by tino415
24 Feb 2013, 12:54
Forum: Modelling & Texturing Tutorials & Resources
Topic: Blender S3O Import/Export + BOS Export Plugin v0.6
Replies: 88
Views: 64723

Re: Blender S3O Import/Export + BOS Export Plugin v0.6

I downloaded, extracted to script/addons directory, twice restart blender, set access level of that files to very public, restart blender, nothing...., I use blender 6.5, also a small suggestion... export to lua script...

Go to advanced search