targetname in info_player_start -1 reply

Please wait...

MeusH

°•°•°•°•°•°•°•°•°

50 XP

16th November 2003

0 Uploads

3,282 Posts

0 Threads

#1 15 years ago

Hi! It's me, my mod and my ******* scripts.

I want to make npc follow me.

So I've write a script: set ( /*@SET_TYPES*/ "SET_LEADER", "jaden" );

And I've add key to info_player_start: targetname jaden

When I run a game, level loads, error window shows "Couldn't find spawn point". Also, when I set targetname to npc, npc doesn't spawns...

Can anyone help me? [COLOR=Navy]PLEASE![/COLOR]




moberemk

Just a guy who likes to help.

50 XP

1st December 2003

0 Uploads

1,285 Posts

0 Threads

#2 15 years ago

Well, maybe this means that the info_player_start is made into a different entity through this?




MeusH

°•°•°•°•°•°•°•°•°

50 XP

16th November 2003

0 Uploads

3,282 Posts

0 Threads

#3 15 years ago

Maybye....




moberemk

Just a guy who likes to help.

50 XP

1st December 2003

0 Uploads

1,285 Posts

0 Threads

#4 15 years ago

I have tried making that entity trigger something, but it just doesn't work. You need to make the info_player_start trigger something indirectly, rather then directly. So maybe is you took away the targetname and replaced it with player?




MeusH

°•°•°•°•°•°•°•°•°

50 XP

16th November 2003

0 Uploads

3,282 Posts

0 Threads

#5 15 years ago

Hey, but there is no trigger on my map (except door, platform triggers). And I din't change classname with targetname... This targetname (with script that affects this name) just "erases" enity.

If I disable the script (delete from pk3), info_player_start works...




Guest

I didn't make it!

0 XP

 
#6 15 years ago

Have you tried script_targetname instead of targetname?




MeusH

°•°•°•°•°•°•°•°•°

50 XP

16th November 2003

0 Uploads

3,282 Posts

0 Threads

#7 15 years ago

As new key? Like classname or spawnscript?




Guest

I didn't make it!

0 XP

 
#8 15 years ago

key: script_targetname value: jaden

Use instead of targetname on the info_player_start.

I was wondering, if this is single player wouldn't set ("SET_BEHAVIOR_STATE", "BS_FOLLOW_LEADER" ); make it follow the player?




MeusH

°•°•°•°•°•°•°•°•°

50 XP

16th November 2003

0 Uploads

3,282 Posts

0 Threads

#9 15 years ago

I'm just compiling...