MDL_VERSION_NR = 105
SR_TRIGGERABLE = [ 'ent_audio', 'ent_ccmd', 'ent_gate', 'ent_challenge', \
'ent_relay', 'ent_skateshop', 'ent_objective', 'ent_route',\
MDL_VERSION_NR = 105
SR_TRIGGERABLE = [ 'ent_audio', 'ent_ccmd', 'ent_gate', 'ent_challenge', \
'ent_relay', 'ent_skateshop', 'ent_objective', 'ent_route',\
- 'ent_miniworld', 'ent_region', 'ent_glider', 'ent_list' ]
+ 'ent_miniworld', 'ent_region', 'ent_glider', 'ent_list',\
+ 'ent_npc' ]
class ent_npc(Structure):#{
_fields_ = [("transform",mdl_transform),
("id",c_uint32),
class ent_npc(Structure):#{
_fields_ = [("transform",mdl_transform),
("id",c_uint32),
class volume_trigger(Structure):
#{
_fields_ = [("event",c_uint32),
class volume_trigger(Structure):
#{
_fields_ = [("event",c_uint32),
("id_next",c_uint32),
("filter",c_uint32),("filter2",c_uint32),
("id_win",c_uint32),
("id_next",c_uint32),
("filter",c_uint32),("filter2",c_uint32),
("id_win",c_uint32),
class ent_relay(Structure):#{
_fields_ = [("targets",(c_uint32*2)*4),
class ent_relay(Structure):#{
_fields_ = [("targets",(c_uint32*2)*4),
compile_obj_transform( obj, npc.transform )
npc.id = obj_data.au
npc.context = obj_data.context
compile_obj_transform( obj, npc.transform )
npc.id = obj_data.au
npc.context = obj_data.context
class SR_OBJECT_ENT_NPC(bpy.types.PropertyGroup):#{
au: bpy.props.IntProperty()
context: bpy.props.IntProperty()
class SR_OBJECT_ENT_NPC(bpy.types.PropertyGroup):#{
au: bpy.props.IntProperty()
context: bpy.props.IntProperty()
+ cam: bpy.props.PointerProperty( \
+ type=bpy.types.Object, name="Viewpoint", \
+ poll=lambda self,obj: sr_filter_ent_type(obj,['ent_camera']))