Posts: 400
Threads: 69
Joined: Apr 2009
Reputation:
0
Ive seen that after i attached a player an object,
i cant unattach it with "SetPlayerObject".
How can i unattach it other way ?
P.S.: Destroying Object doesnt work, bcause i cannot create an object out of OnGameModeInit
Posts: 26
Threads: 2
Joined: Aug 2009
Reputation:
0
If it is a playerobject then do DestroyPlayerObject, otherwise DestroyObject.
But there was something changed in 0.3 with the object stuff, read the beta release topic.
Posts: 400
Threads: 69
Joined: Apr 2009
Reputation:
0
Where to find it ?
btw. i told, destroying doesnt works....
Posts: 1,912
Threads: 5
Joined: Feb 2007
Reputation:
0
attach in car not work...
Posts: 400
Threads: 69
Joined: Apr 2009
Reputation:
0
im not talking about attaching to a vehicle.
Destroying doesnt worked, as far i cant create a new object.
It just doesnt appear again !
Posts: 400
Threads: 69
Joined: Apr 2009
Reputation:
0
So what do i have to do to unattach it ?!
Posts: 2,799
Threads: 95
Joined: Jun 2006
Reputation:
0
Worry more about creating it correctly. I create around 15,000 objects outside of ongamemodeinit with no issue. They all have the correct IDs and I can destroy/recreate them all day long. The fact you can't use CreateObject outside of ongamemodeinit leads me to believe you have bigger issues to worry about.
Once you figure that out, create them with an id and destroy them using that id.
Posts: 400
Threads: 69
Joined: Apr 2009
Reputation:
0
I tried creating an object and attaching them directly.
The Player didnt got attached anything !