Akakemushi Posted October 14 Share Posted October 14 Title says it all. I can spawn the deer, but not with antlers. I know how to just give myself the antlers themselves, but that’s not what I’m trying to do. Needs to be a deer with antlers. Also, while I’m here, how might I teleport myself to a deer with antlers, assuming one exists? Link to comment Share on other sites More sharing options...
-LukaS- Posted October 14 Share Posted October 14 You can use this command in the console to spawn a deer that will instantly grow its antler: c_spawn("deer"):PushEvent("timerdone", { name = "growantler" }) To find the nearest deer with an antler you're gonna need something a bit more complex so it might not be that easy to input into the console but here's the code: for _, ent in pairs(Ents) do if ent.prefab == "deer" and ent.hasantler then ThePlayer.Transform:SetPosition(ent.Transform:GetWorldPosition()) end end And here it is in a single line: for _, ent in pairs(Ents) do if ent.prefab == "deer" and ent.hasantler then ThePlayer.Transform:SetPosition(ent.Transform:GetWorldPosition()) end end Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now