Jump to content

Leadwerks 3 "How do I ____?" Questions and Answers


Chris Vossen
 Share

Recommended Posts

The best is to attach some different script to type 1 and type 6 or have a custom global variable indicating who is it ? type 1 or type 6.

 

The mor esimple is to detect any entity that collides, than when it collides you just check the "script name" of the entity or some interna variable of the class.

If self.type == 1

If self.type == 6

 

if slef.script == Goblin (type 1)

if slef.script == golem (type6)

 

I htink there are good ways of doing what you want.

Stop toying and make games

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...