get a variable from creator or parent?

Non-platform specific questions.

get a variable from creator or parent?

Postby pixelpoop » Fri Sep 29, 2006 11:30 pm

hello all,
is it possible to have an actor get anothers "actor variable" from it's creator or parent? I thought it might be this but I was wrong. on draw actor event
Code: Select all
localvariable=creator.localvariable;

any ideas?
User avatar
pixelpoop
 
Posts: 276
Joined: Tue Aug 29, 2006 9:32 pm
Score: 28 Give a positive score

Postby Game A Gogo » Fri Sep 29, 2006 11:37 pm

maybe:
Code: Select all
Myvariable.parent
Myvariable.creator
Programming games is an art,
    Respect it.
User avatar
Game A Gogo
 
Posts: 3466
Joined: Wed Jun 29, 2005 10:49 pm
Location: French Canada *laughs*
Score: 181 Give a positive score

Re: get a variable from creator or parent?

Postby makslane » Fri Sep 29, 2006 11:59 pm

pixelpoop wrote:
Code: Select all
localvariable=creator.localvariable;


Your code is right
makslane
Site Admin
 
Posts: 3947
Joined: Sat Apr 05, 2003 6:47 pm
Score: 182 Give a positive score


Return to General

Who is online

Users browsing this forum: No registered users and 1 guest