Post: Returning a spawnStruct()'s name?
08-03-2016, 05:27 PM #1
Couto
Haxor!
(adsbygoogle = window.adsbygoogle || []).push({}); I have this object, that I can in-game, save it's name and then do whatever I want with it later, the only thing that I can't do is know it's name, so I can put him on my project, it's called with spawnStruct() so I'm wondering how can I know a spawnStruct()'s object name?*
(adsbygoogle = window.adsbygoogle || []).push({});
08-03-2016, 05:45 PM #2
seanhellen
Are you high?
This is used like

ent = SpawnStruct();

So (for example) you would delete it by coding

ent delete()

Dont think spawnstruct is used any other way
08-03-2016, 05:47 PM #3
Couto
Haxor!
Ok, but I didn't called it, the game called it, and I want to know what's the spawnStructs()'s name so I can delete it.
And I already am managing the spawnStruct(), in the way that I can teleport it, and even destroy it, but I'm not being able to find the object name.
08-03-2016, 05:53 PM #4
seanhellen
Are you high?
Ah, ok. Sorry, i dont know then Happy
08-03-2016, 06:32 PM #5
anthonything
Space Ninja
Originally posted by Couto View Post
Ok, but I didn't called it, the game called it, and I want to know what's the spawnStructs()'s name so I can delete it.
And I already am managing the spawnStruct(), in the way that I can teleport it, and even destroy it, but I'm not being able to find the object name.


A struct is a memory slot for anything you need to create manually. It isnt a physical entity or anything like that. If you want to name it, use ent.targetname = "somename"; Then to get it, use GetEnt("somename", "targetname") to get the entity
08-03-2016, 06:32 PM #6
anthonything
Space Ninja
Originally posted by seanhellen View Post
This is used like

ent = SpawnStruct();

So (for example) you would delete it by coding

ent delete()

Dont think spawnstruct is used any other way


Please dont answer questions if you dont know the answer. It just causes more problems.
08-03-2016, 07:00 PM #7
Couto
Haxor!
Originally posted by anthonything View Post
Please dont answer questions if you dont know the answer. It just causes more problems.


can you message me on skype so I can explain further on what is that i'm having problem with? add my skype: lowkeynho
08-04-2016, 05:29 PM #8
Couto
Haxor!
Originally posted by anthonything View Post
A struct is a memory slot for anything you need to create manually. It isnt a physical entity or anything like that. If you want to name it, use ent.targetname = "somename"; Then to get it, use GetEnt("somename", "targetname") to get the entity


I don't want to name it, I want to know it's name, I tried what you said it doesn't return anything

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo