type stuff

Blitz3D Forums/Blitz3D Beginners Area/type stuff

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

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