set object type for vehicles [message #471803] |
Tue, 17 July 2012 08:20 ![Go to next message Go to next message](/theme/Renegade_Forums/images/down.png) |
robbyke
Messages: 348 Registered: September 2010 Location: Belgium
Karma: 0
|
Recruit |
|
|
ive made it possible to enter emplacements defences for players
but when a player gets out it should set its type back to the correct team
It DOES set the team but players dont see that is it possible to force an update on that?
Owner of kambot TT server
kambot.freeforums.org
|
|
|
Re: set object type for vehicles [message #471805 is a reply to message #471803] |
Tue, 17 July 2012 08:50 ![Go to previous message Go to previous message](/theme/Renegade_Forums/images/up.png) ![Go to next message Go to next message](/theme/Renegade_Forums/images/down.png) |
![](http://renegadeforums.com/images/avatars/Sedan.jpg) |
Distrbd21
Messages: 743 Registered: September 2008
Karma: 0
|
Colonel |
![Distrbd21](/theme/Renegade_Forums/images/yahoo.png)
|
|
robbyke wrote on Tue, 17 July 2012 10:20 | ive made it possible to enter emplacements defences for players
but when a player gets out it should set its type back to the correct team
It DOES set the team but players dont see that is it possible to force an update on that?
|
Use a timer when the exit they gun emplacement to reset the team 0.01f, after the player gets out.
Live Your Life Not Some one Else's.| Sharing Is Caring
Cookie Jar<glome> Who stole the cookie from the cookie jar?!
<content> glome stole the cookie from the cookie jar!
<glome> Who me?!
<content> Yes you!
<glome> Couldn't be!
<content> Then WHO?!!
<glome> Woody stole the cookie from the cookie jar!
*** glome has been kicked by DrWoody (fuck you i didn't touch the motherfucking cookie, bitch
Suicide<TB> I was depressed last night so I called the Suicide Life Line.
<TB> I reached a call center in Pakistan.
<TB> I told them I was suicidal.
<TB> They got all excited and asked if I could drive a truck
[Updated on: Tue, 17 July 2012 08:50] Report message to a moderator
|
|
|
|
|
Re: set object type for vehicles [message #471854 is a reply to message #471803] |
Tue, 17 July 2012 18:27 ![Go to previous message Go to previous message](/theme/Renegade_Forums/images/up.png) ![Go to next message Go to next message](/theme/Renegade_Forums/images/down.png) |
|
If you want to force an object to sync up netcode wise, call Update_Network_Object.
If you have ejected a player from a vehicle with an engine call, you have to wait for some function to run (e.g. via a timer) to allow the normal engine code to run and carry out the normal player eject player.
If you are inside a handler for CUSTOM_EVENT_VEHICLE_EXITED, you also need a time delay.
Jonathan Wilson aka Jonwil
Creator and Lead Coder of the Custom scripts.dll
Renegade Engine Guru
Creator and Lead Coder of TT.DLL
Official member of Tiberian Technologies
|
|
|
Re: set object type for vehicles [message #471866 is a reply to message #471803] |
Wed, 18 July 2012 02:15 ![Go to previous message Go to previous message](/theme/Renegade_Forums/images/up.png) ![Go to next message Go to next message](/theme/Renegade_Forums/images/down.png) |
iRANian
Messages: 4307 Registered: April 2011
Karma: 0
|
General (4 Stars) |
|
|
Why does the engine at transition start teleport your position and at the end (in a second function) actually do the rest of the transition (e.g. leave or enter a vehicle)?
Long time and well respected Renegade community member, programmer, modder and tester.
Scripts 4.0 private beta tester since May 2011.
My Renegade server plugins releases
|
|
|
|