how do i refer to a type from outside the type
ie
shadowpiv=CreatePivot()
EntityParent shadowpiv,p\model
this returns an error, 'variable must be a type'
the p\model is from the type
below
Function CreatePlayer.Player( x#,y#,z# )
p.Player=New Player
p\entity=CreatePivot()
p\model=CopyEntity( player_model,p/entity )
p\player_y=y
p\walk=walk
p\jump=jump
p\still=still
PositionEntity p/entity,x,y,z
EntityType p\entity,TYPE_PLAYER
EntityRadius p\entity,1.7
ResetEntity p\entity
Return p
End Function
ie
shadowpiv=CreatePivot()
EntityParent shadowpiv,p\model
this returns an error, 'variable must be a type'
the p\model is from the type
below
Function CreatePlayer.Player( x#,y#,z# )
p.Player=New Player
p\entity=CreatePivot()
p\model=CopyEntity( player_model,p/entity )
p\player_y=y
p\walk=walk
p\jump=jump
p\still=still
PositionEntity p/entity,x,y,z
EntityType p\entity,TYPE_PLAYER
EntityRadius p\entity,1.7
ResetEntity p\entity
Return p
End Function