-
-
Notifications
You must be signed in to change notification settings - Fork 14
Closed
Description
I'm writing custom entity which is not extending from ValveIONode. I followed the wiki instruction copied these code and got an error
Parse Error: Invalid argument for "get_entity_transform()" function: argument 1 should be "VMFEntity" but is "Dictionary".
my code:
class_name func_door_rotating extends InteractableComponent(my own class defined elsewhere)
var entity : Dictionary = {}
static func setup(entity_structure : Dictionary, instance: func_door_rotating):
instance.entity = entity_structure; # This is required
instance.transform = ValveIONode.get_entity_transform(entity_structure);
instance.basis *= Basis(Vector3.UP, -PI / 2);
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels