Aller au contenu

Photo

CreateObjectVoid()


  • Veuillez vous connecter pour répondre
3 réponses à ce sujet

#1
Morbane

Morbane
  • Members
  • 1 883 messages
Hello all,

So with the include "nw_i0_2q4luskan" you can use CreateObjectVoid() which is a wrapper for CreateObject but circumvents the return object and allows you to - in theory - DelayCommand(float, CreateObjectVoid(...) the thing is I can't get it to work...

Any tips from someone that has gotten it to work? 

#2
Morbane

Morbane
  • Members
  • 1 883 messages
Woot! I got it to work! This is the line in the ga_* script that does it:

AssignCommand(GetModule(), DelayCommand(2.0f, CreateObjectVoid(OBJECT_TYPE_PLACEABLE, "placeable_1", lLoc, FALSE)));

The two things that I didn't get right at first were AssignCommand.... and GetModule() for the action subject.

:lol:

Modifié par Morbane, 29 juillet 2010 - 10:17 .


#3
Quilistan

Quilistan
  • Members
  • 111 messages
There is another example of this in a post of mine in a thread further down the page.

social.bioware.com/forum/1/topic/164/index/3175939

The script posted is about half way down the page.

Edit: edit doesn't always seem to work here?

Modifié par Quilistan, 29 juillet 2010 - 03:50 .


#4
.Lv

.Lv
  • Members
  • 6 messages
oot: edit just takes some time. You should try to refresh the page after an edit.