Freelancer Community Network
Reminder: Internet Explorer 6 or below are NOT supported.
HomeHome
ForumForum
WikiWiki
DownloadsDownloads
ForgeForge
Multiplayer Connection Tutorial
Collapse/Expand Random Image
Collapse/Expand Login
Username:

Password:

Remember me



Lost Password?

Register now!
Collapse/Expand Chat
Collapse/Expand Who's Online
58 user(s) are online (28 user(s) are browsing Forum)

Members: 0
Guests: 58

more...
Collapse/Expand Donations
Monthly costs: -30€
Income (ads): +5€
Donations (last month): +10€

Current balance: -300€
(last updated 11/2017)

Please make a donation if you want to help keeping The-Starport online:

Bitcoin address:
Thanks!
Collapse/Expand Links
Collapse/Expand Advertisement
There are currently 40 users playing Freelancer on 32 servers.
November. 25, 2017

Browsing this Thread:   1 Anonymous Users



 Bottom   Previous Topic   Next Topic  Register To Post



THN related question
Quite a regular
Joined:
2012/8/10 14:03
Group:
Registered Users
Posts: 145
Offline
Does anyone know if its possible to inherit object defintions in THN files?

In particular I have a thn file which places an animated game object into a scene (which is working fine) but I want to trigger the animation event from a different THN file.
So with other words File A places the object into the game and File B should start the animation of the object.

So far I could only get the animation to work if object and event were part of the same THN script. However, I want to separate those because the game object should be visible all the time while the animation only should only be triggered when specific events happen (that requires to have 2 script files).

Personally I believe that its not possible but maybe I have overlooked something.


any ideas?

Posted on: 2016/7/25 9:57

Edited by SWAT_OP-R8R on 2016/7/25 10:05:20
Top
Re: THN related question
Just can't stay away
Joined:
2008/2/17 19:44
From Virginia
Group:
Registered Users
FLServer Admins
Senior Members
Posts: 364
Offline
If it is something in the background (like the asteroids outside the bar windows) then it could be redefined or made to look different from a different camera angle.

Or is it as simple as the 'accept', 'decline' when getting a bribe? Each elicits a different response from the patron.

Posted on: 2016/7/25 18:46
http://UnderVerse.us
http://FreelancerCommunity.net
Top
Re: THN related question
Not too shy to talk
Joined:
2010/6/13 13:38
From Russia, Penza
Group:
Registered Users
Posts: 79
Offline
Maybe it will helps. My example: landing on Spruage:


In this script I have 3 different models:
1. planetscape model WITHOUT DOORS
2. animated doors number 1
3. animated doors number 2
On landing I spawn animated doors num 1 and activate animation on it. After animation ends I will move model to any not visible place.
On launching I spawn animated doors number 2 and run animation again.

Posted on: 2016/7/25 20:29
Top
Re: THN related question
Just can't stay away
Joined:
2008/2/17 19:44
From Virginia
Group:
Registered Users
FLServer Admins
Senior Members
Posts: 364
Offline
Very nice Jeider!

Posted on: 2016/7/25 20:44
http://UnderVerse.us
http://FreelancerCommunity.net
Top
Re: THN related question
Quite a regular
Joined:
2012/8/10 14:03
Group:
Registered Users
Posts: 145
Offline
I was thinking about something similar but as soon the animated parts overlapped the parts of the original model it caused random crashes


Im not really sure why as this even happens without sur and collision detection.

Posted on: 2016/7/26 8:37
Top
Re: THN related question
Not too shy to talk
Joined:
2010/6/13 13:38
From Russia, Penza
Group:
Registered Users
Posts: 79
Offline
Maybe problem in not unique names of objects in cmp file?

Posted on: 2016/7/26 10:25
Top
Re: THN related question
Quite a regular
Joined:
2012/8/10 14:03
Group:
Registered Users
Posts: 145
Offline
nope, i made sure that this isnt an issue

i guess i could try to remove the animated parts from the original model altogether and do some tests then
but even if this is working this cant be the final solution as i want the animated parts to be visible all the time

Posted on: 2016/7/26 16:06

Edited by SWAT_OP-R8R on 2016/7/26 16:21:34
Top