Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Forum » Questions (player objects, stealth vehs)
Re: Questions (player objects, stealth vehs) [message #416529 is a reply to message #413375] Sat, 02 January 2010 14:05 Go to previous messageGo to previous message
Hubba is currently offline  Hubba
Messages: 40
Registered: October 2009
Karma:
Recruit
Alright im still stuck with this. So i thought it would be a good idea to bump the thread.

The problem is How can i make an object to be stored as an id in the vector?

So when i do for example:
!ramp
It would create the object.
Then get the id of that obj and add it to the vector.
Then the vector would look like this Vector2d[playerid][1]
Then if we do the command again it would add a new element so it would be Vector2d[playerid][1,2] etc etc.

Then when i do !sellall i would just loop through the vector depending on the playerid and then do Commands->Destroy_Object on all the objects. But then again how would i be able to find the objects?.

I Hope someone can help because i don't know if is it possible to do way i just wrote up.


 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: A few skins
Next Topic: C++ code help please.
Goto Forum:
  


Current Time: Sat Dec 14 23:07:19 MST 2024

Total time taken to generate the page: 0.00939 seconds