Author Topic: How do you make actors walk through walls?  (Read 3827 times)

0 Members and 1 Guest are viewing this topic.

Offline jtyler125

How do you make actors walk through walls?
« on: January 12, 2007, 10:08:22 AM »
This seems like a weird question but I have gotten what I needed from the tutorial based on the priority of objects and walls but what if I don't want Ego to be able to walk through walls but I do want the actors to be able to walk through walls.


1)  How do you write a script to make actors not Ego walk through walls?





Thanks,
Jesse


Life is getting better all the time.
Groundhog Day Competition New Year's Competition

Offline Cloudee1

Re: How do you make actors walk through walls?
« Reply #1 on: January 12, 2007, 03:52:55 PM »
If you want to make it so specific actors can walk through walls, it is as simple as telling them to ignore the white control lines. So if you had a ghost for example who could pass through walls. The intance would be the same for any regular actor, except when you init it try doing this.

Code: [Select]
(ghostMan:ignoreControl(ctlWHITE)init())
ghostMan can now walk through all white control lines. Similarly, if you would like a character to not cross say the blue control line you could also use.
 
Code: [Select]
(ghostMan:observeControl(ctlBLUE)init())
« Last Edit: January 12, 2007, 10:16:24 PM by Cloudee1 »
Halloween Competition Brass Lantern Prop Competition Groundhog Day Competition


SMF 2.0.19 | SMF © 2021, Simple Machines
Simple Audio Video Embedder

Page created in 0.038 seconds with 23 queries.