If Theres a targetname operator... what about "target?

Post your scripting questions / solutions here

Moderator: Moderators

Post Reply
Master-Of-Fungus-Foo-D
Muffin Man
Posts: 1544
Joined: Tue Jan 27, 2004 12:33 am
Location: cali, United States

If Theres a targetname operator... what about "target?

Post by Master-Of-Fungus-Foo-D »

well the title explains all. I know in a script theres a targetname operator ($blah) but what about a target operator.

PS im a noob scripter. Im still learning the joys of the script :) :) :)
Image
The Fungus Theme song!!!

Code: Select all

while (local.player istouching self)
User avatar
tltrude
Chuck Norris
Posts: 4774
Joined: Sun Jul 07, 2002 4:03 am
Location: Oklahoma, USA
Contact:

target

Post by tltrude »

An entity can "target" another entity like this in the script.

$blah1.target = $blah2
Tom Trude,

Image
lizardkid
Windows Zealot
Posts: 3672
Joined: Fri Mar 19, 2004 7:16 pm
Location: Helena MT

Post by lizardkid »

target is just a property for the $targetnamed entitiy, so if you had

$guy.target = $otherguy

the otherguy wouldn't have any special stuff ascociated with him. he'd be the target of the other guy.
Moderator

۞
Abyssus pro sapientia
Olympus pro Ignarus
۞

AND STUFF™ © 2006
blue60007
General
Posts: 1247
Joined: Sun Mar 07, 2004 11:44 pm

Post by blue60007 »

In radiant if you had entity 1 targeting entity 2 targeting 3 you'd have these key values:

Entity 1

targetname/entity1
target/entity2

Entity 2

targetname/entity2
target/entity3

Entity 3

targetname/entity3




You should see a line connecting these three in a circle.
Image
Master-Of-Fungus-Foo-D
Muffin Man
Posts: 1544
Joined: Tue Jan 27, 2004 12:33 am
Location: cali, United States

Post by Master-Of-Fungus-Foo-D »

ok thanx guys...........................................|
..............................................................\|/
all i needed to know was to put the $blah.TARGET = $blah_blah

thanks again
Image
The Fungus Theme song!!!

Code: Select all

while (local.player istouching self)
Post Reply