Digital Workshop

Welcome to the Digital Workshop Message Boards
It is currently January 10th, 2025, 9:14 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Name of dropped object
PostPosted: June 13th, 2006, 9:24 pm 
Offline

Joined: November 3rd, 2004, 6:44 pm
Posts: 59
Location: Ipswich, UK
Is it possible to get the name of an object when it is dropped as I want to develop some reusable script rather than hardcoding the names in.

Regards

Clive Cartmel


Top
 Profile  
 
 Post subject:
PostPosted: June 13th, 2006, 10:13 pm 
Offline

Joined: October 26th, 2004, 10:23 am
Posts: 666
Location: Digital Workshop
One way would be to add an On Dropped trigger to the drop objects that had a a script containing something line:
Code:
SomeFunction( this.GetName() );

Where SomeFunction() is a function defined in a script object which does whatever you need with the object name.

_________________
ddww Opus Developer


Top
 Profile Visit website  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 59 guests


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

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group