Fulqrum Publishing Home   |   Register   |   Today Posts   |   Members   |   UserCP   |   Calendar   |   Search   |   FAQ

Go Back   Official Fulqrum Publishing forum > Fulqrum Publishing > Star Wolves

Star Wolves 3D space RPG with deep strategy and tactical elements

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #11  
Old 04-20-2010, 06:55 PM
Nanaki Nanaki is offline
Approved Member
 
Join Date: Mar 2010
Posts: 338
Default

Well, now I have to figure out how to do the despawn script. Unfortunately, I have not the foggiest idea on where to start. I have been trying different ideas but all of them have failed so far.

Basically, I need the escort ships to despawn whenever the primary capital ship passes through a gate. The hardest part is making sure im despawning the correct escorts. My current attempt is focusing upon naming escort ships the exact same names as their parent ships, and adding an _escort1, _escort2, etc. etc. etc. at the end. Then, when the script is called to delete that random contact, it would also call deletion scripts for its escorts:

function trigger_inside2portal_Action()
--SLOG("Action done....");
local myTriggerContext = GetTriggerContext();
local flight = myTriggerContext:GetFlight();
flightelete();

local escort1 = flight.."_escort1"
escort1elete();
end;

Only problem was, it spat out an error:
[ScriptSystem] error: attempt to concat local `flight' (a table value)

So the triggers use tables? Getting data out of it is going to be harder than I thought, it seems.
Reply With Quote
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 01:43 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright © 2007 Fulqrum Publishing. All rights reserved.