Community

SCI Programming => SCI Syntax Help => Topic started by: jtyler125 on January 12, 2007, 10:08:22 AM

Title: How do you make actors walk through walls?
Post by: jtyler125 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
Title: Re: How do you make actors walk through walls?
Post by: Cloudee1 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())