-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for dynamic objects #97
Comments
Did you mean dynamic object from the Streamer plugin? |
Yes |
There might be a second cmd like |
FCNPC_SetSurfingPlayerDynamicObject is too long for the pawn compiler. It will result in the Warning 200 - symbol "foobar" is truncated to 31 characters. EDIT: |
|
CreateObject ==> Global object FCNPC_SetSurfingObject ==> Global object Keep it consistent. |
Think I have a (temporary) fix. FCNPC_SetSurfingPlayerObject(npcid, Streamer_GetItemInternalID(npcid, STREAMER_TYPE_OBJECT, streamerid)); Haven't tested yet though. |
Yeap, I think I will fix this by Pawn, this is more simple way I guess |
Just tested my possible fix. It doesn't seem to work... |
So, I guess what it's not possible because Streamer plugin uses per-player objects, so, this objects is are visible only for players for which they were created. NPC can't surf on object which isn't existed for him. |
That's unfortunate :/ |
Since Dynamic objects are player objects under the hood and NPCs can in fact handle player objects of themselves (yes, I tested this), we should be able to make this work. Therefore, instead of adding a FCNPC_SetSurfingDynamicObject function, we should look into what makes FCNPC_SetSurfingPlayerObject fail. |
Possible cause found.
Result:
So, the streamer plugin doesn't handle NPCs. |
Also found a server crash. EDIT: EDIT 2: |
Was there an issue about this all along? Fix for this is easy, let me see if I can code it for you. |
@WoutProvost There you go, should I make a PR? Now making it for dynamic obejcts are easy:
|
Can't test right now, but wtf dude, where have you been all this time? We could've used someone like you before. Yes please make a PR if you're sure it works. You make me realise I don't know shit about syncing. |
Regarding FCNPC_SetSurfingPlayerObject.
Forum post: click
The text was updated successfully, but these errors were encountered: