Source SDK

Source SDK

CITIZEN KANE Jan 16, 2018 @ 12:06pm
parenting a entitiy to info_player_start ?
yeah so im wondering how to do this i want to parent a info_target to info_player_start, but in the player start properties, it doesnt have the parent-property like other entities. is there any way i can do this

=i want the entitiy to move with the player as one spawns
Last edited by CITIZEN KANE; Jan 16, 2018 @ 12:06pm
< >
Showing 1-4 of 4 comments
phillippi2 Jan 16, 2018 @ 12:19pm 
If I remember correctly, the player entity is not actually dealt with through hammer. That particular entity is loaded at runtime and placed at the player spawn location.. You have to do it through a script that triggers when the player spawns.
CITIZEN KANE Jan 17, 2018 @ 4:36am 
Originally posted by phillippi2:
If I remember correctly, the player entity is not actually dealt with through hammer. That particular entity is loaded at runtime and placed at the player spawn location.. You have to do it through a script that triggers when the player spawns.
how do you do that ?
Moltard Jan 17, 2018 @ 1:20pm 
!player is the name you use in outputs (in hl2, and portal) to target the player.

So have a trigger_once around the area where the info player start is. And this output
OnStartTouch > your entity > SetParent > !player

In this case, because it's the player who touch the trigger, you could do:
OnStartTouch > your entity > SetParent > !activator

!activator is a special name you can use that will affect the entity that fired the output, in this case, the player touch the trigger, and he is the activator
CITIZEN KANE Jan 18, 2018 @ 12:03am 
Originally posted by Moltard:
!player is the name you use in outputs (in hl2, and portal) to target the player.

So have a trigger_once around the area where the info player start is. And this output
OnStartTouch > your entity > SetParent > !player

In this case, because it's the player who touch the trigger, you could do:
OnStartTouch > your entity > SetParent > !activator

!activator is a special name you can use that will affect the entity that fired the output, in this case, the player touch the trigger, and he is the activator
thanks i'll try this
< >
Showing 1-4 of 4 comments
Per page: 1530 50

Date Posted: Jan 16, 2018 @ 12:06pm
Posts: 4