PDA

View Full Version : Is it possible to Set an Items Target



MetaNerd
08-05-2003, 09:12 PM
I can read an objects target, But I have had no luck setting an objects Target(object).

How can I do this?, Is it possible?

Thanks,

Chris

Tom Speed
08-06-2003, 09:45 AM
Hi,

Use the CS Command TargetItem()


generic
{
SelectItem("Camera");
TargetItem("Null");
HController(2); // 'Point at Target'
PController(2); // 'Point at Target'
RedrawNow(); // Update viewport, optional
}


Cya!
Tom

NanoGator
07-23-2004, 12:02 PM
How did you get the object's target?

faulknermano
07-24-2004, 04:24 AM
Originally posted by NanoGator
How did you get the object's target?


use the target datamember.

for details look it up in the lscript reference docs chapter 5: common data members and methods